dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b54ec0
)
Followup r87132, per Bryan, still return the "limit" to be the current users limit...
author
Sam Reed
<reedy@users.mediawiki.org>
Fri, 29 Apr 2011 21:46:17 +0000
(21:46 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Fri, 29 Apr 2011 21:46:17 +0000
(21:46 +0000)
includes/api/ApiParamInfo.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiParamInfo.php
b/includes/api/ApiParamInfo.php
index
5849286
..
c70fb37
100644
(file)
--- 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;
}