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 @@
163
163
}
164
164
if ( isset( $p[ApiBase::PARAM_ISMULTI] ) && $p[ApiBase::PARAM_ISMULTI] ) {
165
165
$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;
167
170
$a['highlimit'] = ApiBase::LIMIT_SML2;
168
171
}
169
172
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r87132
* (
bug 28238
) paraminfo: output both limits for multi param
reedy
20:52, 29 April 2011
Status & tagging log
16:18, 30 April 2011
Catrope
(
talk
|
contribs
)
changed the
status
of r87138
[
removed:
new
added:
ok]