X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryQueryPage.php;h=b09ffa24e195fa7af4ee6d2475b69860c03920e0;hb=fa6402516114f900194ab0203ff8878f9094bcab;hp=40592605b66b4e21e2190c5da183816e3c575071;hpb=e1bb9e302fecbf5ae7fc1248a63f4a064dcd2268;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryQueryPage.php b/includes/api/ApiQueryQueryPage.php index 40592605b6..b09ffa24e1 100644 --- a/includes/api/ApiQueryQueryPage.php +++ b/includes/api/ApiQueryQueryPage.php @@ -2,7 +2,7 @@ /** * * - * Created on Sep 10, 2007 + * Created on Dec 22, 2010 * * Copyright © 2010 Roan Kattouw .@gmail.com * @@ -60,6 +60,10 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { $this->run( $resultPageSet ); } + /** + * @param $resultPageSet ApiPageSet + * @return void + */ public function run( $resultPageSet = null ) { global $wgUser; $params = $this->extractRequestParams(); @@ -78,7 +82,7 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { $r['cached'] = ''; $ts = $qp->getCachedTimestamp(); if ( $ts ) { - $r['cachedTimestamp'] = wfTimestamp( TS_ISO_8601, $ts ); + $r['cachedtimestamp'] = wfTimestamp( TS_ISO_8601, $ts ); } } } @@ -168,7 +172,7 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { protected function getExamples() { return array( - 'api.php?action=query&list=querypages&qppage=Ancientpages' + 'api.php?action=query&list=querypage&qppage=Ancientpages' ); }