dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Followup e48ecbc5: fix fatal error due to undefined variable
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryBase.php
diff --git
a/includes/api/ApiQueryBase.php
b/includes/api/ApiQueryBase.php
index
01384c0
..
8e014df
100644
(file)
--- a/
includes/api/ApiQueryBase.php
+++ b/
includes/api/ApiQueryBase.php
@@
-321,8
+321,7
@@
abstract class ApiQueryBase extends ApiBase {
);
$this->profileDBOut();
- global $wgAPIMaxDBRows;
- if ( $rowcount > $wgAPIMaxDBRows ) {
+ if ( $rowcount > $this->getConfig()->get( 'APIMaxDBRows' ) ) {
return false;
}