r87138 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87137‎ | r87138 | r87139 >
Date:21:46, 29 April 2011
Author:reedy
Status:ok
Tags:
Comment:
Followup r87132, per Bryan, still return the "limit" to be the current users limit, but return high/low limit
Modified paths:
  • /trunk/phase3/includes/api/ApiParamInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiParamInfo.php
@@ -162,7 +162,10 @@
163163 }
164164 if ( isset( $p[ApiBase::PARAM_ISMULTI] ) && $p[ApiBase::PARAM_ISMULTI] ) {
165165 $a['multi'] = '';
166 - $a['limit'] = ApiBase::LIMIT_SML1;
 166+ $a['limit'] = $this->getMain()->canApiHighLimits() ?
 167+ ApiBase::LIMIT_SML2 :
 168+ ApiBase::LIMIT_SML1;
 169+ $a['lowlimit'] = ApiBase::LIMIT_SML1;
167170 $a['highlimit'] = ApiBase::LIMIT_SML2;
168171 }
169172

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r87132* (bug 28238) paraminfo: output both limits for multi paramreedy20:52, 29 April 2011

Status & tagging log