r111210 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111209‎ | r111210 | r111211 >
Date:22:38, 10 February 2012
Author:reedy
Status:ok
Tags:
Comment:
* (bug 33307) TBL gives user account creation error - undefined method TitleBlacklist::singleton()
Modified paths:
  • /branches/REL1_18/extensions/TitleBlacklist/TitleBlacklist.hooks.php (modified) (history)

Diff [purge]

Index: branches/REL1_18/extensions/TitleBlacklist/TitleBlacklist.hooks.php
@@ -81,8 +81,9 @@
8282 * @return bool Acceptable
8383 */
8484 private static function acceptNewUserName( $userName, $permissionsUser, &$err, $override = true ) {
 85+ global $wgTitleBlacklist;
8586 $title = Title::makeTitleSafe( NS_USER, $userName );
86 - $blacklisted = TitleBlacklist::singleton()->userCannot( $title, $permissionsUser,
 87+ $blacklisted = $wgTitleBlacklist->userCannot( $title, $permissionsUser,
8788 'new-account', $override );
8889 if( $blacklisted instanceof TitleBlacklistEntry ) {
8990 $message = $blacklisted->getErrorMessage( 'new-account' );

Status & tagging log