aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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;
}
}