Followup r87132, per Bryan, still return the "limit" to be the current users limit...
authorSam Reed <reedy@users.mediawiki.org>
Fri, 29 Apr 2011 21:46:17 +0000 (21:46 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 29 Apr 2011 21:46:17 +0000 (21:46 +0000)
includes/api/ApiParamInfo.php

index 5849286..c70fb37 100644 (file)
@@ -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;
                        }