r70787 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70786‎ | r70787 | r70788 >
Date:00:51, 10 August 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Follow up to r70756
Modified paths:
  • /trunk/extensions/Distribution/api/ApiQueryExtensions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Distribution/api/ApiQueryExtensions.php
@@ -42,7 +42,7 @@
4343 * @param $action
4444 */
4545 public function __construct( $main, $action ) {
46 - parent :: __construct( $main, $action, 'dst' );
 46+ parent::__construct( $main, $action, 'dst' );
4747 }
4848
4949 /**
@@ -65,11 +65,11 @@
6666 public function getAllowedParams() {
6767 return array (
6868 'limit' => array(
69 - ApiBase :: PARAM_DFLT => 10,
70 - ApiBase :: PARAM_TYPE => 'limit',
71 - ApiBase :: PARAM_MIN => 1,
72 - ApiBase :: PARAM_MAX => ApiBase :: LIMIT_BIG1,
73 - ApiBase :: PARAM_MAX2 => ApiBase :: LIMIT_BIG2
 69+ ApiBase::PARAM_DFLT => 10,
 70+ ApiBase::PARAM_TYPE => 'limit',
 71+ ApiBase::PARAM_MIN => 1,
 72+ ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1,
 73+ ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2
7474 ),
7575 'continue' => null,
7676 );
@@ -82,8 +82,8 @@
8383 */
8484 public function getParamDescription() {
8585 return array (
86 - 'continue' => 'Number of the first story to return',
87 - 'limit' => 'Amount of stories to return',
 86+ 'continue' => 'Number of the first extension to return',
 87+ 'limit' => 'Amount of extensions to return',
8888 );
8989 }
9090

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r70756Added parameter definitions in the API modulejeroendedauw08:09, 9 August 2010

Status & tagging log