ApiQueryInfo: fix query limits for testactions
authorBartek Łukawski <bwmn.peter@gmail.com>
Mon, 17 Sep 2018 11:23:36 +0000 (13:23 +0200)
committerPeter Bowman <bwmn.peter@gmail.com>
Mon, 17 Sep 2018 11:28:23 +0000 (11:28 +0000)
ApiBase::LIMIT_SML2 actually belongs to apihighlimits.

Change-Id: Iaa50c6be417c9681563087b80928dc49a3bbd141

includes/api/ApiQueryInfo.php

index 0cf6b04..3b7b00d 100644 (file)
@@ -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
                        }