46 $hasTitle = $titleResultSet ? $titleResultSet->numRows() > 0 :
false;
47 $hasText = $textResultSet ? $textResultSet->numRows() > 0 :
false;
48 $hasSecondary = $textResultSet
49 ? $textResultSet->hasInterwikiResults( SearchResultSet::SECONDARY_RESULTS )
51 $hasSecondaryInline = $textResultSet
52 ? $textResultSet->hasInterwikiResults( SearchResultSet::INLINE_RESULTS )
55 if ( !$hasTitle && !$hasText && !$hasSecondary && !$hasSecondaryInline ) {
61 $out .= $this->
header( $this->specialPage->msg(
'titlematches' ) )
67 $out .=
"<div class='mw-search-visualclear'></div>" .
68 $this->
header( $this->specialPage->msg(
'textmatches' ) );
73 if ( $hasSecondaryInline ) {
74 $iwResults = $textResultSet->getInterwikiResults( SearchResultSet::INLINE_RESULTS );
75 foreach ( $iwResults as $interwiki => $results ) {
76 if ( $results instanceof
Status || $results->numRows() === 0 ) {
81 "<h2 class='mw-search-interwiki-header mw-search-visualclear'>" .
82 $this->specialPage->msg(
"search-interwiki-results-{$interwiki}" )->parse() .
88 if ( $hasSecondary ) {
89 $out .= $this->sidebarWidget->render(
91 $textResultSet->getInterwikiResults( SearchResultSet::SECONDARY_RESULTS )