$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 ) {
/**
* 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
* @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;