r64180 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64179‎ | r64180 | r64181 >
Date:20:24, 25 March 2010
Author:happy-melon
Status:ok
Tags:
Comment:
Fix sorting in Allmessages.
Modified paths:
  • /trunk/phase3/includes/specials/SpecialAllmessages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialAllmessages.php
@@ -175,9 +175,9 @@
176176 wfProfileIn( __METHOD__ );
177177 $messageNames = Language::getLocalisationCache()->getSubitemList( 'en', 'messages' );
178178 if( $descending ){
179 - krsort( $messageNames );
 179+ rsort( $messageNames );
180180 } else {
181 - ksort( $messageNames );
 181+ asort( $messageNames );
182182 }
183183
184184 // Normalise message names so they look like page titles

Follow-up revisions

RevisionCommit summaryAuthorDate
r649261.16wmf4: MFT r64180catrope09:40, 11 April 2010
r65361MFT r64180: fixed sorting in Special:Allmessageststarling09:35, 21 April 2010

Status & tagging log