From d535a2e92c29b7a9cff84c344c6e474f654aaa9e Mon Sep 17 00:00:00 2001 From: stretchyboy <martyn.eggleton@gmail.org> Date: Wed, 31 Mar 2010 11:45:50 +0100 Subject: [PATCH] Fixes variable replacement during _template.txt parsing --- inc/common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/common.php b/inc/common.php index 2877bc00e..4e5a2e197 100644 --- a/inc/common.php +++ b/inc/common.php @@ -836,7 +836,7 @@ function pageTemplate($id){ * * @author Andreas Gohr <andi@splitbrain.org> */ -function parsePageTemplate($data) { +function parsePageTemplate(&$data) { extract($data); global $USERINFO; @@ -879,7 +879,7 @@ function parsePageTemplate($data) { // we need the callback to work around strftime's char limit $tpl = preg_replace_callback('/%./',create_function('$m','return strftime($m[0]);'),$tpl); - + $data['tpl'] = $tpl; return $tpl; } -- GitLab