From 1cd0cda111ea642b34d81436f9a68fb4cd1fe8a2 Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 13 Oct 2011 18:18:05 +0000 Subject: bug 2469 compiled_template_cache_language option does not work properly on some language keys because of double escaping git-svn-id: http://piwigo.org/svn/trunk@12429 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/template.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/template.class.php b/include/template.class.php index 92f78a3d6..4147717f4 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -771,7 +771,7 @@ var s,after = document.getElementsByTagName(\'script\')[document.getElementsByTa $regex = "~$ldq *\'([^'$]+)\'\|@translate\|~"; $source = preg_replace_callback( $regex, create_function('$m', 'global $lang; return isset($lang[$m[1]]) ? \'{\'.var_export($lang[$m[1]],true).\'|\' : \'$m[0]\';'), $source); - $regex = "~($ldq *assign +var=.+ +value=)\'([^'$]+)\'\|@translate~e"; + $regex = "~($ldq *assign +var=.+ +value=)\'([^'$]+)\'\|@translate~"; $source = preg_replace_callback( $regex, create_function('$m', 'global $lang; return isset($lang[$m[2]]) ? $m[1].var_export($lang[$m[2]],true) : \'$m[0]\';'), $source); return $source; -- cgit v1.2.3