JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
wfpl_template: renamed to wfpl_tem_data to avoid conflict with old system.
authorJosh Grams <josh@qualdan.com>
Thu, 6 Aug 2009 12:09:27 +0000 (08:09 -0400)
committerJosh Grams <josh@qualdan.com>
Thu, 6 Aug 2009 12:09:27 +0000 (08:09 -0400)
messages.php
run.php

index 826cb6e..2d065e3 100644 (file)
@@ -65,7 +65,7 @@ function display_messages(&$tem = NULL) {
        if(!$GLOBALS['wfpl_messages']) return;
        foreach($GLOBALS['wfpl_messages'] as $msg) {
                $sub = array('text' => $msg);
-               $GLOBALS['wfpl_template']['message'][] = $sub;
-               $GLOBALS['wfpl_template']['messages'] = TRUE;
+               $GLOBALS['wfpl_tem_data']['message'][] = $sub;
+               $GLOBALS['wfpl_tem_data']['messages'] = TRUE;
        }
 }
diff --git a/run.php b/run.php
index 4e56e98..3d0b1d4 100644 (file)
--- a/run.php
+++ b/run.php
@@ -116,7 +116,7 @@ function run_php($dest = false) {
                }
        }
 
-       $data = &$GLOBALS['wfpl_template'];
+       $data = &$GLOBALS['wfpl_tem_data'];
        $data['basename'] = $basename;
        if(function_exists('display_messages')) {
                display_messages();