r43555 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43554‎ | r43555 | r43556 >
Date:11:53, 15 November 2008
Author:aaron
Status:deferred
Tags:
Comment:
Just use rsort(), it's faster :p
Modified paths:
  • /trunk/extensions/Configure/Configure.handler-files.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Configure/Configure.handler-files.php
@@ -114,8 +114,8 @@
115115 if ( preg_match( '/conf-(\d{14})\.ser$/', $file, $m ) )
116116 $files[] = $m[1];
117117 }
118 - sort( $files, SORT_NUMERIC );
119 - return array_reverse( $files );
 118+ rsort( $files, SORT_NUMERIC );
 119+ return $files;
120120 }
121121
122122 /**

Status & tagging log