Fixed handling of blank urlname as guest main page / other main page for members
authorDan
Sat, 26 Sep 2009 15:13:40 -0400
changeset 1121 bf5adc446018
parent 1120 55b5911cd39e
child 1122 e1606c85e937
Fixed handling of blank urlname as guest main page / other main page for members
includes/pageutils.php
includes/paths.php
--- a/includes/pageutils.php	Fri Sep 25 14:22:24 2009 -0400
+++ b/includes/pageutils.php	Sat Sep 26 15:13:40 2009 -0400
@@ -257,7 +257,7 @@
       return 'DNE';
     }
     
-    if ( isPage($pname['password']) )
+    if ( isPage($pname) )
     {
       $password_exists = ( !empty($cdata['password']) && $cdata['password'] !== sha1('') );
       if ( $password_exists && $password !== $cdata['password'] )
--- a/includes/paths.php	Fri Sep 25 14:22:24 2009 -0400
+++ b/includes/paths.php	Sat Sep 26 15:13:40 2009 -0400
@@ -135,7 +135,7 @@
       if ( empty($title) )
         $title = get_title();
       
-      if ( empty($title) && get_main_page() != '' )
+      if ( empty($title) && getConfig('main_page', 'Main_Page') != '' && getConfig('main_page', getConfig('main_page', 'Main_Page')) != '' )
       {
         $this->main_page();
       }