Index: trunk/extensions/AntiSpoof/AntiSpoof_body.php |
— | — | @@ -265,6 +265,7 @@ |
266 | 266 | |
267 | 267 | # TODO: does too much in one routine, refactor... |
268 | 268 | public static function checkUnicodeString( $testName ) { |
| 269 | + wfLoadExtensionMessages( 'AntiSpoof' ); |
269 | 270 | # Start with some sanity checking |
270 | 271 | if( !is_string( $testName ) ) { |
271 | 272 | return array( "ERROR", wfMsg('antispoof-badtype') ); |
Index: trunk/extensions/AntiSpoof/AntiSpoof.php |
— | — | @@ -41,8 +41,6 @@ |
42 | 42 | global $wgHooks; |
43 | 43 | $wgHooks['AbortNewAccount'][] = 'asAbortNewAccountHook'; |
44 | 44 | $wgHooks['AddNewAccount'][] = 'asAddNewAccountHook'; |
45 | | - |
46 | | - wfLoadExtensionMessages( 'AntiSpoof' ); |
47 | 45 | } |
48 | 46 | |
49 | 47 | function asUpdateSchema() { |
— | — | @@ -61,6 +59,7 @@ |
62 | 60 | */ |
63 | 61 | function asAbortNewAccountHook( $user, &$message ) { |
64 | 62 | global $wgAntiSpoofAccounts, $wgUser; |
| 63 | + wfLoadExtensionMessages( 'AntiSpoof' ); |
65 | 64 | |
66 | 65 | if( !$wgAntiSpoofAccounts ) { |
67 | 66 | $mode = 'LOGGING '; |