X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryAllLinks.php;h=fadecfb47e2791e728c9bb3d7721b45099ec9416;hb=beab6b009ef45d1d8e62943caa4bceb7a04f0c16;hp=a70d019c75bf4cdb18f695c499ab01c336d69b4e;hpb=31d0a18d3efd13f025633df1cc5a5be7b058f9a3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryAllLinks.php b/includes/api/ApiQueryAllLinks.php index a70d019c75..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 {