From 4d18298e86dfc23bdb80e241804f0566465a2ece Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 29 Apr 2011 21:46:17 +0000 Subject: [PATCH] Followup r87132, per Bryan, still return the "limit" to be the current users limit, but return high/low limit --- includes/api/ApiParamInfo.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.20.1