From 025420785071bb8898f93a8da5721b8cf91f49e1 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 5 Jan 2009 23:11:37 -0800 Subject: [PATCH] We can't evaluate the footer template as a globalVar because it won't have all the queries * admin/global.php: Do not eval the footer template, but make a function to do it * admin/templates/main.html: Call admin_footer() instead of $templates['footer'] --- admin/global.php | 8 ++++++-- admin/templates/main.html | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/admin/global.php b/admin/global.php index 05a95e6..338466e 100755 --- a/admin/global.php +++ b/admin/global.php @@ -35,13 +35,17 @@ BSTemplate::$globalVars = array( 'doctype' => BSTemplate::fetch('doctype')->evaluate()->getTemplate(), 'nav' => BSTemplate::fetch('nav')->evaluate()->getTemplate(), 'headinclude' => BSTemplate::fetch('headinclude')->evaluate()->getTemplate(), - 'title' => T('Bugdar Administration'), - 'footer' => BSTemplate::fetch('footer')->evaluate()->getTemplate() + 'title' => T('Bugdar Administration') ) ); // ################################################################### +function admin_footer() +{ + return BSTemplate::fetch('footer')->evaluate()->getTemplate(); +} + function admin_login() { BSTemplate::fetch('login')->evaluate()->flush(); diff --git a/admin/templates/main.html b/admin/templates/main.html index cd654a6..8aa1f34 100644 --- a/admin/templates/main.html +++ b/admin/templates/main.html @@ -79,7 +79,7 @@ -<%- $templates['footer'] %> +<%- admin_footer() %> -- 2.43.5