fixed a special page name comparison
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 22 Nov 2006 13:22:41 +0000 (13:22 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 22 Nov 2006 13:22:41 +0000 (13:22 +0000)
includes/Title.php

index b81b631..3bcc064 100644 (file)
@@ -1164,8 +1164,7 @@ class Title {
                         * Always grant access to the login page.
                         * Even anons need to be able to log in.
                        */
-                       if( $this->getNamespace() == NS_SPECIAL
-                           && $this->getText() == 'Userlogin' ) {
+                       if( $this->isSpecial( 'Userlogin' ) ) {
                                return true;
                        }