X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryPageProps.php;h=1f992f8ff5631fc522e387a4be9ce5939aa71961;hb=855f4cc0bf7e769ae947597ca5ea5007965f5bad;hp=130b829ade378966d69a0ed2ded1f480ee7d8b34;hpb=08aaea93e300d3b34befdbd30368c1293973760e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryPageProps.php b/includes/api/ApiQueryPageProps.php index 130b829ade..1f992f8ff5 100644 --- a/includes/api/ApiQueryPageProps.php +++ b/includes/api/ApiQueryPageProps.php @@ -110,6 +110,7 @@ class ApiQueryPageProps extends ApiQueryBase { * @return bool True if it fits in the result */ private function addPageProps( $result, $page, $props ) { + ApiResult::setArrayType( $props, 'assoc' ); $fit = $result->addValue( array( 'query', 'pages', $page ), 'pageprops', $props ); if ( !$fit ) { @@ -134,14 +135,14 @@ class ApiQueryPageProps extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( - 'action=query&prop=pageprops&titles=Category:Foo' + 'action=query&prop=pageprops&titles=Main%20Page|MediaWiki' => 'apihelp-query+pageprops-example-simple', ); } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Properties#pageprops_.2F_pp'; + return 'https://www.mediawiki.org/wiki/API:Pageprops'; } }