aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/template.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/template.php b/include/template.php
index 0c29ae3e7..cc638c044 100644
--- a/include/template.php
+++ b/include/template.php
@@ -330,6 +330,9 @@ class Template {
// replace \ with \\ and then ' with \'.
$code = str_replace('\\', '\\\\', $code);
$code = str_replace('\'', '\\\'', $code);
+
+ // PWG specific : communication between template and $lang
+ $code = preg_replace('/\{lang:([^}]+)\}/e', "l10n('$1')", $code);
// change template varrefs into PHP varrefs