From: umherirrender Date: Sat, 12 May 2012 15:11:47 +0000 (+0200) Subject: Add maxresults to list=querypage X-Git-Tag: 1.31.0-rc.0~23628^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=94395dcdd35fab78d2b6ba62acf721998ffe8251;p=lhc%2Fweb%2Fwiklou.git Add maxresults to list=querypage Change-Id: I96e12428305d86c623e810d58f3f3173906f42e1 --- 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 );