aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2011-10-13 18:18:54 +0000
committerrvelices <rv-github@modusoptimus.com>2011-10-13 18:18:54 +0000
commit70d61ebeef649426b2a5bcdc14c46d1c4cec267c (patch)
tree697c366fb52fbbfa7e058de121cb24828ea467ec
parent3af2b3b0043adca43b5206952253cc302c796e1b (diff)
bug 2469 (merge from trunk) compiled_template_cache_language option does not work properly on some language keys because of double escaping
git-svn-id: http://piwigo.org/svn/branches/2.3@12430 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--include/template.class.php2
1 files changed, 1 insertions, 1 deletions
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;