# HG changeset patch # User Dan # Date 1253992420 14400 # Node ID bf5adc446018328dbe2a08e537bd757d16907b7a # Parent 55b5911cd39e643c786bfeee5264f76fbc7c3643 Fixed handling of blank urlname as guest main page / other main page for members diff -r 55b5911cd39e -r bf5adc446018 includes/pageutils.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'] ) diff -r 55b5911cd39e -r bf5adc446018 includes/paths.php --- 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(); }