X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryQueryPage.php;h=650ac8fef91d53416c82ae456bebb5a9788b138d;hb=c656c3d7d4c34dfb8832c632df2daa9867bd90a2;hp=2da5777ef447b56c320dd667ef6a66e998f4e169;hpb=5309ad3df1f7c7c5794c1b014396427fbd53a7c1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryQueryPage.php b/includes/api/ApiQueryQueryPage.php index 2da5777ef4..650ac8fef9 100644 --- a/includes/api/ApiQueryQueryPage.php +++ b/includes/api/ApiQueryQueryPage.php @@ -68,9 +68,9 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { $r = array( 'name' => $params['page'] ); if ( $qp->isCached() ) { if ( !$qp->isCacheable() ) { - $r['disabled'] = ''; + $r['disabled'] = true; } else { - $r['cached'] = ''; + $r['cached'] = true; $ts = $qp->getCachedTimestamp(); if ( $ts ) { $r['cachedtimestamp'] = wfTimestamp( TS_ISO_8601, $ts ); @@ -119,7 +119,7 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { } } if ( is_null( $resultPageSet ) ) { - $result->setIndexedTagName_internal( + $result->addIndexedTagName( array( 'query', $this->getModuleName(), 'results' ), 'page' ); @@ -158,7 +158,7 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=querypage&qppage=Ancientpages' => 'apihelp-query+querypage-example-ancientpages',