X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryAllLinks.php;h=347da89606cffc90aaf9e673ffa366fd64b9838e;hb=38ba6b620be9f6333d902055ae1c0c610af4985e;hp=a70d019c75bf4cdb18f695c499ab01c336d69b4e;hpb=885a8bdc47e6f5b9add4d5ddcb9c63a2d95e3a70;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryAllLinks.php b/includes/api/ApiQueryAllLinks.php index a70d019c75..347da89606 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 { @@ -253,6 +255,7 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase { ApiBase::PARAM_TYPE => array_merge( array( 'ids', 'title' ), array_keys( $this->props ) ), + ApiBase::PARAM_HELP_MSG_PER_VALUE => array(), ), 'namespace' => array( ApiBase::PARAM_DFLT => $this->dfltNamespace,