summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php4
1 files 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;
}