We can't evaluate the footer template as a globalVar because it won't have all the...
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 6 Jan 2009 07:11:37 +0000 (23:11 -0800)
committerRobert Sesek <rsesek@bluestatic.org>
Tue, 6 Jan 2009 07:11:37 +0000 (23:11 -0800)
* 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
admin/templates/main.html

index 05a95e645bf591e985d5cf1cf246ee6079c238a9..338466ebac0d1e6891d9fbc225abe52018760d01 100755 (executable)
@@ -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();
index cd654a6c2a4464cc203aae4318dc42d0713a101b..8aa1f34a715484201441158456cb9ed5b056dc69 100644 (file)
@@ -79,7 +79,7 @@
 
 </table>
 
-<%- $templates['footer'] %>
+<%- admin_footer() %>
 
 </div>