From a1ac1b82fc9ad95aeb16270ee601586dcacd8fa9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartek=20=C5=81ukawski?= Date: Mon, 17 Sep 2018 13:23:36 +0200 Subject: [PATCH] ApiQueryInfo: fix query limits for testactions ApiBase::LIMIT_SML2 actually belongs to apihighlimits. Change-Id: Iaa50c6be417c9681563087b80928dc49a3bbd141 --- includes/api/ApiQueryInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.20.1