Enanium: fixed failure to load on template_nodb
authorDan
Mon, 11 May 2009 09:06:01 -0400
changeset 964 a0add54d9795
parent 963 b572ce1114f1
child 965 72b37471cce0
Enanium: fixed failure to load on template_nodb
themes/enanium/header.tpl
--- a/themes/enanium/header.tpl	Sun May 10 15:52:53 2009 -0400
+++ b/themes/enanium/header.tpl	Mon May 11 09:06:01 2009 -0400
@@ -17,7 +17,7 @@
   <body>
     <div id="header">
       <?php
-      if ( $head = $paths->sysMsg('SiteHeader') )
+      if ( is_object($paths) && $head = $paths->sysMsg('SiteHeader') )
       {
         echo $head;
       }
@@ -25,7 +25,7 @@
       {
       ?>
         <div class="logo"></div>
-        <h1><a href="<?php echo makeUrl(get_main_page(), false, true); ?>">{SITE_NAME}</a></h1>
+        <h1><a href="<?php echo is_object($session) ? makeUrl(get_main_page(), false, true) : scriptPath . '/'; ?>">{SITE_NAME}</a></h1>
       <?php
         }
       ?>