https://www.mediawiki.org/wiki/Special:Code/MediaWiki/105428
Revision: 105428 Author: hashar Date: 2011-12-07 14:25:26 +0000 (Wed, 07 Dec 2011) Log Message: ----------- (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. Modified Paths: -------------- trunk/phase3/includes/Title.php Modified: trunk/phase3/includes/Title.php =================================================================== --- trunk/phase3/includes/Title.php 2011-12-07 13:17:02 UTC (rev 105427) +++ trunk/phase3/includes/Title.php 2011-12-07 14:25:26 UTC (rev 105428) @@ -1669,7 +1669,10 @@ # 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; } _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs