aboutsummaryrefslogtreecommitdiffstats
path: root/include/template.class.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-10-02 00:30:34 +0000
committerrvelices <rv-github@modusoptimus.com>2008-10-02 00:30:34 +0000
commit73eb979635fcb7ed8863b4fa7b1ad5fc595f895f (patch)
tree0b2f07b4529a38a8e8a47fa60c2e2d7851f3d507 /include/template.class.php
parent335ccb7418c9e1a8cce216407c3554d492db1761 (diff)
- the optim option conf['compiled_template_cache_language'] works better
git-svn-id: http://piwigo.org/svn/trunk@2636 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/template.class.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/template.class.php b/include/template.class.php
index 382071e7a..8ed354f7f 100644
--- a/include/template.class.php
+++ b/include/template.class.php
@@ -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;
}
}