r109811 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109810‎ | r109811 | r109812 >
Date:10:34, 23 January 2012
Author:maxsem
Status:ok
Tags:
Comment:
Sort query modules
Modified paths:
  • /trunk/extensions/ApiSandbox/SpecialApiSandbox.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ApiSandbox/SpecialApiSandbox.php
@@ -125,6 +125,7 @@
126126 private function getQueryModules( $type ) {
127127 $options = array();
128128 $params = $this->apiQuery->getAllowedParams();
 129+ sort( $params[$type][ApiBase::PARAM_TYPE] );
129130 foreach ( $params[$type][ApiBase::PARAM_TYPE] as $module ) {
130131 $options["$type=$module"] = "$type=$module";
131132 }

Status & tagging log