r2465 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r2464‎ | r2465 | r2466 >
Date:09:03, 9 February 2004
Author:timstarling
Status:old
Tags:
Comment:
bug fix -- Invalid argument supplied for foreach()
Modified paths:
  • /trunk/phase3/maintenance/InitialiseMessages.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/InitialiseMessages.inc
@@ -27,7 +27,8 @@
2828 $sql = "SELECT cur_title FROM cur WHERE cur_namespace=$ns AND cur_title IN(";
2929
3030 $first = true;
31 - $sortedArray = ksort( $wgAllMessagesEn );
 31+ $sortedArray = $wgAllMessagesEn;
 32+ ksort( $sortedArray );
3233
3334 foreach ( $sortedArray as $key => $enMsg ) {
3435 if ( $first ) {

Status & tagging log