r104696 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104695‎ | r104696 | r104697 >
Date:15:53, 30 November 2011
Author:maxsem
Status:ok
Tags:
Comment:
Move query to the top of modules list
Modified paths:
  • /trunk/extensions/ApiSandbox/SpecialApiSandbox.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ApiSandbox/SpecialApiSandbox.php
@@ -66,6 +66,11 @@
6767 sort( $formats );
6868 $modules = array_keys( $apiMain->getModules() );
6969 sort( $modules );
 70+ $key = array_search( 'query', $modules );
 71+ if ( $key !== false ) {
 72+ array_splice( $modules, $key, 1 );
 73+ array_unshift( $modules, 'query' );
 74+ }
7075 $queryModules = array_merge(
7176 $this->getQueryModules( 'list' ),
7277 $this->getQueryModules( 'prop' ),

Status & tagging log