46 $hasTitle = $titleResultSet ? $titleResultSet->numRows() > 0 :
false;
47 $hasText = $textResultSet ? $textResultSet->numRows() > 0 :
false;
48 $hasSecondary = $textResultSet
49 ? $textResultSet->hasInterwikiResults( ISearchResultSet::SECONDARY_RESULTS )
51 $hasSecondaryInline = $textResultSet
52 ? $textResultSet->hasInterwikiResults( ISearchResultSet::INLINE_RESULTS )
55 if ( !$hasTitle && !$hasText && !$hasSecondary && !$hasSecondaryInline ) {
62 $out .= $this->
header( $this->specialPage->msg(
'titlematches' ) )
69 $out .=
"<div class='mw-search-visualclear'></div>" .
70 $this->
header( $this->specialPage->msg(
'textmatches' ) );
76 if ( $hasSecondaryInline ) {
77 $iwResults = $textResultSet->getInterwikiResults( ISearchResultSet::INLINE_RESULTS );
78 foreach ( $iwResults as $interwiki => $results ) {
79 if ( $results instanceof
Status || $results->numRows() === 0 ) {
84 "<h2 class='mw-search-interwiki-header mw-search-visualclear'>" .
85 $this->specialPage->msg(
"search-interwiki-results-{$interwiki}" )->parse() .
91 if ( $hasSecondary ) {
92 $out .= $this->sidebarWidget->render(
94 $textResultSet->getInterwikiResults( ISearchResultSet::SECONDARY_RESULTS )
101 ->getLanguageConverter();
102 return $converter->convert( $out );