From 4ab5b4ee8a49ba21f9b3a0d2f5f3c2946d5a2e70 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 26 Jun 2008 10:50:35 -0400 Subject: [PATCH] Global variables $stylevar and $show need to be set for the global templates * global.php --- global.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/global.php b/global.php index d6c9798..29110c8 100755 --- a/global.php +++ b/global.php @@ -72,11 +72,18 @@ if (!(defined('NO_TEMPLATES') AND constant('NO_TEMPLATES') == true)) BSApp::debug('time for tpl cache: ' . BSFunctions::fetch_microtime_diff($start)); BSTemplate::$globalVars = array( + 'stylevar' => &$stylevar, + 'show' => &$show, + ); + + $globalTemplates = array( 'header' => BSTemplate::fetch('header')->evaluate()->getTemplate(), 'doctype' => BSTemplate::fetch('doctype')->evaluate()->getTemplate(), 'headinclude' => BSTemplate::fetch('headinclude')->evaluate()->getTemplate(), - 'footer' => BSTemplate::fetch('footer')->evaluate()->getTemplate() + 'footer' => BSTemplate::fetch('footer')->evaluate()->getTemplate(), ); + + BSTemplate::$globalVars = array_merge($globalTemplates, BSTemplate::$globalVars); } // ################################################################### -- 2.22.5