X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryBase.php;h=8e014dff9577062fb92bb83f9107c79daf6cccab;hb=de7d383d8f840ef33a79fd5b5f06c5ebcbf74905;hp=01384c0a795f0591e9ea15bf6d26d860efa7ba2c;hpb=8ed08f1d467f7a57d36a97d9556d25061c298825;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index 01384c0a79..8e014dff95 100644 --- 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; }