From 28d90af8f3907552dc80b038a6c02c2efb393e0a Mon Sep 17 00:00:00 2001 From: Samuel Vanhove Date: Thu, 13 Oct 2016 17:01:44 -0400 Subject: [PATCH] CRM-19093 - i18n executeQuery regex pb --- CRM/Core/I18n/Schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/I18n/Schema.php b/CRM/Core/I18n/Schema.php index c51bcb07fe..2b483bde54 100644 --- a/CRM/Core/I18n/Schema.php +++ b/CRM/Core/I18n/Schema.php @@ -361,7 +361,7 @@ class CRM_Core_I18n_Schema { global $dbLocale; $tables = self::schemaStructureTables(); foreach ($tables as $table) { - $query = preg_replace("/([^'\"])({$table})([^_'\"])/", "\\1\\2{$dbLocale}\\3", $query); + $query = preg_replace("/([^'\"])({$table})([^a-z_'\"])/", "\\1\\2{$dbLocale}\\3", $query); } // uncomment the below to rewrite the civicrm_value_* queries // $query = preg_replace("/(civicrm_value_[a-z0-9_]+_\d+)([^_])/", "\\1{$dbLocale}\\2", $query); -- 2.25.1