Index: branches/REL1_18/extensions/TitleBlacklist/TitleBlacklist.hooks.php |
— | — | @@ -81,8 +81,9 @@ |
82 | 82 | * @return bool Acceptable |
83 | 83 | */ |
84 | 84 | private static function acceptNewUserName( $userName, $permissionsUser, &$err, $override = true ) { |
| 85 | + global $wgTitleBlacklist; |
85 | 86 | $title = Title::makeTitleSafe( NS_USER, $userName ); |
86 | | - $blacklisted = TitleBlacklist::singleton()->userCannot( $title, $permissionsUser, |
| 87 | + $blacklisted = $wgTitleBlacklist->userCannot( $title, $permissionsUser, |
87 | 88 | 'new-account', $override ); |
88 | 89 | if( $blacklisted instanceof TitleBlacklistEntry ) { |
89 | 90 | $message = $blacklisted->getErrorMessage( 'new-account' ); |