From 94395dcdd35fab78d2b6ba62acf721998ffe8251 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 12 May 2012 17:11:47 +0200 Subject: [PATCH] Add maxresults to list=querypage Change-Id: I96e12428305d86c623e810d58f3f3173906f42e1 --- includes/api/ApiQueryQueryPage.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/api/ApiQueryQueryPage.php b/includes/api/ApiQueryQueryPage.php index 5eba0de66c..8efe65d696 100644 --- a/includes/api/ApiQueryQueryPage.php +++ b/includes/api/ApiQueryQueryPage.php @@ -70,6 +70,8 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { * @param $resultPageSet ApiPageSet */ public function run( $resultPageSet = null ) { + global $wgQueryCacheLimit; + $params = $this->extractRequestParams(); $result = $this->getResult(); @@ -88,6 +90,7 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { if ( $ts ) { $r['cachedtimestamp'] = wfTimestamp( TS_ISO_8601, $ts ); } + $r['maxresults'] = $wgQueryCacheLimit; } } $result->addValue( array( 'query' ), $this->getModuleName(), $r ); -- 2.20.1