From dc3c040399475f7b68497919c39c90adcca4caa5 Mon Sep 17 00:00:00 2001 From: chrisaga Date: Sat, 3 Dec 2005 17:33:38 +0000 Subject: improve template : split theme from template itself rest of the job : template (yoga), themes (clear dark), and php to handle them git-svn-id: http://piwigo.org/svn/trunk@960 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/template.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/template.php') diff --git a/include/template.php b/include/template.php index f82937d99..674e08659 100644 --- a/include/template.php +++ b/include/template.php @@ -330,6 +330,8 @@ class Template { { // PWG specific : communication between template and $lang $code = preg_replace('/\{lang:([^}]+)\}/e', "l10n('$1')", $code); + // PWG specific : expand themeconf.inc.php variables + $code = preg_replace('/\{themeconf:([^}]+)\}/e', "get_themeconf('$1')", $code); // replace \ with \\ and then ' with \'. $code = str_replace('\\', '\\\\', $code); -- cgit v1.2.3