From: Sam Reed Date: Fri, 29 Apr 2011 21:46:17 +0000 (+0000) Subject: Followup r87132, per Bryan, still return the "limit" to be the current users limit... X-Git-Tag: 1.31.0-rc.0~30508 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=4d18298e86dfc23bdb80e241804f0566465a2ece;p=lhc%2Fweb%2Fwiklou.git Followup r87132, per Bryan, still return the "limit" to be the current users limit, but return high/low limit --- diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php index 5849286f39..c70fb377aa 100644 --- a/includes/api/ApiParamInfo.php +++ b/includes/api/ApiParamInfo.php @@ -162,7 +162,10 @@ class ApiParamInfo extends ApiBase { } if ( isset( $p[ApiBase::PARAM_ISMULTI] ) && $p[ApiBase::PARAM_ISMULTI] ) { $a['multi'] = ''; - $a['limit'] = ApiBase::LIMIT_SML1; + $a['limit'] = $this->getMain()->canApiHighLimits() ? + ApiBase::LIMIT_SML2 : + ApiBase::LIMIT_SML1; + $a['lowlimit'] = ApiBase::LIMIT_SML1; $a['highlimit'] = ApiBase::LIMIT_SML2; }