From: Antoine Musso Date: Wed, 7 Dec 2011 14:25:26 +0000 (+0000) Subject: (bug 32473) [[Special:PasswordReset]] can not be used on private wiki X-Git-Tag: 1.31.0-rc.0~26143 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=d5f1d52ea92a02c4359ae2545854ee42260d3c5c;p=lhc%2Fweb%2Fwiklou.git (bug 32473) [[Special:PasswordReset]] can not be used on private wiki This patch is a quick fix for REL1_18 branch. For later: We should not have hack in Title.php to allow some specific special pages this should be made possible using SpecialPage. Would make code cleaner. --- diff --git a/includes/Title.php b/includes/Title.php index 22d6aee863..26e7a91caa 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1669,7 +1669,10 @@ class Title { # Always grant access to the login page. # Even anons need to be able to log in. - if ( $this->isSpecial( 'Userlogin' ) || $this->isSpecial( 'ChangePassword' ) ) { + if ( $this->isSpecial( 'Userlogin' ) + || $this->isSpecial( 'ChangePassword' ) + || $this->isSpecial( 'PasswordReset' ) + ) { return $errors; }