r29551 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29550‎ | r29551 | r29552 >
Date:20:02, 10 January 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* Delay message loading
Modified paths:
  • /trunk/extensions/AntiSpoof/AntiSpoof.php (modified) (history)
  • /trunk/extensions/AntiSpoof/AntiSpoof_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AntiSpoof/AntiSpoof_body.php
@@ -265,6 +265,7 @@
266266
267267 # TODO: does too much in one routine, refactor...
268268 public static function checkUnicodeString( $testName ) {
 269+ wfLoadExtensionMessages( 'AntiSpoof' );
269270 # Start with some sanity checking
270271 if( !is_string( $testName ) ) {
271272 return array( "ERROR", wfMsg('antispoof-badtype') );
Index: trunk/extensions/AntiSpoof/AntiSpoof.php
@@ -41,8 +41,6 @@
4242 global $wgHooks;
4343 $wgHooks['AbortNewAccount'][] = 'asAbortNewAccountHook';
4444 $wgHooks['AddNewAccount'][] = 'asAddNewAccountHook';
45 -
46 - wfLoadExtensionMessages( 'AntiSpoof' );
4745 }
4846
4947 function asUpdateSchema() {
@@ -61,6 +59,7 @@
6260 */
6361 function asAbortNewAccountHook( $user, &$message ) {
6462 global $wgAntiSpoofAccounts, $wgUser;
 63+ wfLoadExtensionMessages( 'AntiSpoof' );
6564
6665 if( !$wgAntiSpoofAccounts ) {
6766 $mode = 'LOGGING ';

Status & tagging log