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
This commit is contained in:
parent
3af2b3b004
commit
70d61ebeef
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue