Index: trunk/phase3/includes/api/ApiParamInfo.php |
— | — | @@ -260,21 +260,26 @@ |
261 | 261 | } |
262 | 262 | |
263 | 263 | public function getAllowedParams() { |
264 | | - |
| 264 | + $modules = array_keys( $this->getMain()->getModules() ); |
| 265 | + sort( $modules ); |
| 266 | + $querymodules = array_keys( $this->queryObj->getModules() ); |
| 267 | + sort( $querymodules ); |
| 268 | + $formatmodules = array_keys( $this->getMain()->getFormats() ); |
| 269 | + sort( $formatmodules ); |
265 | 270 | return array( |
266 | 271 | 'modules' => array( |
267 | 272 | ApiBase::PARAM_ISMULTI => true, |
268 | | - ApiBase::PARAM_TYPE => array_keys( $this->getMain()->getModules() ), |
| 273 | + ApiBase::PARAM_TYPE => $modules, |
269 | 274 | ), |
270 | 275 | 'querymodules' => array( |
271 | 276 | ApiBase::PARAM_ISMULTI => true, |
272 | | - ApiBase::PARAM_TYPE => array_keys( $this->queryObj->getModules() ), |
| 277 | + ApiBase::PARAM_TYPE => $querymodules, |
273 | 278 | ), |
274 | 279 | 'mainmodule' => false, |
275 | 280 | 'pagesetmodule' => false, |
276 | 281 | 'formatmodules' => array( |
277 | 282 | ApiBase::PARAM_ISMULTI => true, |
278 | | - ApiBase::PARAM_TYPE => array_keys( $this->getMain()->getFormats() ), |
| 283 | + ApiBase::PARAM_TYPE => $formatmodules, |
279 | 284 | ) |
280 | 285 | ); |
281 | 286 | } |