From: Tim Starling Date: Wed, 22 Nov 2006 13:22:41 +0000 (+0000) Subject: fixed a special page name comparison X-Git-Tag: 1.31.0-rc.0~55122 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=dcc0591e178269bbcc2511fdf72f9a70dedab8b8;p=lhc%2Fweb%2Fwiklou.git fixed a special page name comparison --- diff --git a/includes/Title.php b/includes/Title.php index b81b63176b..3bcc06449d 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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; }