Index: trunk/extensions/AbuseFilter/AbuseFilter.hooks.php |
— | — | @@ -69,7 +69,7 @@ |
70 | 70 | return $filter_result == '' || $filter_result === true; |
71 | 71 | } |
72 | 72 | |
73 | | - function onAbortNewAccount( $username, &$message ) { |
| 73 | + function onAbortNewAccount( $user, &$message ) { |
74 | 74 | wfLoadExtensionMessages( 'AbuseFilter' ); |
75 | 75 | if ($username == wfMsgForContent( 'abusefilter-blocker' )) { |
76 | 76 | $message = wfMsg( 'abusefilter-accountreserved' ); |
— | — | @@ -78,7 +78,7 @@ |
79 | 79 | $vars = array(); |
80 | 80 | |
81 | 81 | $vars['ACTION'] = 'createaccount'; |
82 | | - $vars['ACCOUNTNAME'] = $vars['USER_NAME'] = $username; |
| 82 | + $vars['ACCOUNTNAME'] = $vars['USER_NAME'] = $user->getName(); |
83 | 83 | |
84 | 84 | $filter_result = AbuseFilter::filterAction( $vars, SpecialPage::getTitleFor( 'Userlogin' ) ); |
85 | 85 | |