summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorstretchyboy <martyn.eggleton@gmail.org>2010-03-31 11:45:50 +0100
committerstretchyboy <martyn.eggleton@gmail.org>2010-03-31 11:45:50 +0100
commitd535a2e92c29b7a9cff84c344c6e474f654aaa9e (patch)
tree44051b19accd8bca4be57ca97d24f2e28d3c5108 /inc/common.php
parent08d7babffe1bded4620d0a3624bdd80522283138 (diff)
downloadrpg-d535a2e92c29b7a9cff84c344c6e474f654aaa9e.tar.gz
rpg-d535a2e92c29b7a9cff84c344c6e474f654aaa9e.tar.bz2
Fixes variable replacement during _template.txt parsing
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;
}