X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=blobdiff_plain;f=includes%2Fapi%2FApiQuerySearch.php;h=9228d9ace91f53240e3219a13ef8105b986adfcc;hb=6af636fb037fb5b1e00f123ff6015913dc04fc87;hp=23f702cc966b6980dc94b4aad23d76df0eddb56f;hpb=9b30a0d77d154962968cb9f28ee20d2833c578c5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index 23f702cc96..9228d9ace9 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -180,13 +180,13 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { $canAddInterwiki = (bool)$params['enablerewrites'] && ( $resultPageSet === null ); if ( $canAddInterwiki ) { $this->addInterwikiResults( $matches, $apiResult, $prop, 'additional', - SearchResultSet::INLINE_RESULTS ); + ISearchResultSet::INLINE_RESULTS ); } // Interwiki results outside main result set if ( $interwiki && $resultPageSet === null ) { $this->addInterwikiResults( $matches, $apiResult, $prop, 'interwiki', - SearchResultSet::SECONDARY_RESULTS ); + ISearchResultSet::SECONDARY_RESULTS ); } if ( $resultPageSet === null ) { @@ -278,7 +278,7 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { /** * Add interwiki results as a section in query results. - * @param SearchResultSet $matches + * @param ISearchResultSet $matches * @param ApiResult $apiResult * @param array $prop Props to extract (as keys) * @param string $section Section name where results would go @@ -286,7 +286,7 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { * @return int|null Number of total hits in the data or null if none was produced */ private function addInterwikiResults( - SearchResultSet $matches, ApiResult $apiResult, $prop, + ISearchResultSet $matches, ApiResult $apiResult, $prop, $section, $type ) { $totalhits = null;