From dcc0591e178269bbcc2511fdf72f9a70dedab8b8 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 22 Nov 2006 13:22:41 +0000 Subject: [PATCH] fixed a special page name comparison --- includes/Title.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.20.1