From: Bartek Ɓukawski Date: Mon, 17 Sep 2018 11:23:36 +0000 (+0200) Subject: ApiQueryInfo: fix query limits for testactions X-Git-Tag: 1.34.0-rc.0~4079^2 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=a1ac1b82fc9ad95aeb16270ee601586dcacd8fa9;p=lhc%2Fweb%2Fwiklou.git ApiQueryInfo: fix query limits for testactions ApiBase::LIMIT_SML2 actually belongs to apihighlimits. Change-Id: Iaa50c6be417c9681563087b80928dc49a3bbd141 --- diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index 0cf6b04c82..3b7b00de80 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -522,7 +522,7 @@ class ApiQueryInfo extends ApiQueryBase { } if ( $this->params['testactions'] ) { - $limit = $this->getMain()->canApiHighLimits() ? self::LIMIT_SML1 : self::LIMIT_SML2; + $limit = $this->getMain()->canApiHighLimits() ? self::LIMIT_SML2 : self::LIMIT_SML1; if ( $this->countTestedActions >= $limit ) { return null; // force a continuation }