r24959 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24958‎ | r24959 | r24960 >
Date:18:46, 20 August 2007
Author:robchurch
Status:old
Tags:
Comment:
Fix inefficient message loading code (thought I'd found all of these)
Modified paths:
  • /trunk/extensions/Renameuser/SpecialRenameuser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Renameuser/SpecialRenameuser.php
@@ -45,9 +45,8 @@
4646 $wgJobClasses['renameUser'] = 'RenameUserJob';
4747
4848 function wfSpecialRenameuser() {
49 - # Add messages
5049 global $wgMessageCache, $wgRenameuserMessages;
51 - foreach( $wgRenameuserMessages as $key => $value ) {
52 - $wgMessageCache->addMessages( $wgRenameuserMessages[$key], $key );
 50+ foreach( $wgRenameuserMessages as $lang => $messages ) {
 51+ $wgMessageCache->addMessages( $messages, $lang );
5352 }
5453 }
\ No newline at end of file

Status & tagging log