mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-03 12:02:51 +02:00
- the optim option conf['compiled_template_cache_language'] works better
git-svn-id: http://piwigo.org/svn/trunk@2636 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -405,6 +405,9 @@ class Template {
|
||||
$regex = "~$ldq *\'([^'$]+)\'\|@translate\|~";
|
||||
$source = preg_replace( $regex.'e', 'isset($lang[\'$1\']) ? \'{\'.var_export($lang[\'$1\'],true).\'|\' : \'$0\'', $source);
|
||||
|
||||
$regex = "~($ldq *assign +var=.+ +value=)\'([^'$]+)\'\|@translate~e";
|
||||
$source = preg_replace( $regex, 'isset($lang[\'$2\']) ? \'$1\'.var_export($lang[\'$2\'],true) : \'$0\'', $source);
|
||||
|
||||
return $source;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user