X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryAllLinks.php;h=fadecfb47e2791e728c9bb3d7721b45099ec9416;hb=beab6b009ef45d1d8e62943caa4bceb7a04f0c16;hp=075d199a5d82062820cb8e0d5a39d033f6126009;hpb=566635008a4ccd11dfdaac1a6ef9ff428f75251c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryAllLinks.php b/includes/api/ApiQueryAllLinks.php index 075d199a5d..fadecfb47e 100644 --- a/includes/api/ApiQueryAllLinks.php +++ b/includes/api/ApiQueryAllLinks.php @@ -200,7 +200,9 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase { } if ( is_null( $resultPageSet ) ) { - $vals = array(); + $vals = array( + ApiResult::META_TYPE => 'assoc', + ); if ( $fld_ids ) { $vals['fromid'] = intval( $row->pl_from ); } @@ -230,7 +232,7 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase { } if ( is_null( $resultPageSet ) ) { - $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), $this->indexTag ); + $result->addIndexedTagName( array( 'query', $this->getModuleName() ), $this->indexTag ); } elseif ( $params['unique'] ) { $resultPageSet->populateFromTitles( $titles ); } else { @@ -280,7 +282,7 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase { return $allowedParams; } - public function getExamplesMessages() { + protected function getExamplesMessages() { $p = $this->getModulePrefix(); $name = $this->getModuleName(); $path = $this->getModulePath();