// did you mean... suggestions
if ( $showSuggestion && $textMatches && !$textStatus && $textMatches->hasSuggestion() ) {
- $st = SpecialPage::getTitleFor( 'Search' );
-
# mirror Go/Search behavior of original request ..
$didYouMeanParams = array( 'search' => $textMatches->getSuggestionQuery() );
}
$suggestLink = Linker::linkKnown(
- $st,
+ $this->getPageTitle(),
$suggestionSnippet,
array(),
$stParams
// link to related articles if supported
$related = '';
if ( $result->hasRelated() ) {
- $st = SpecialPage::getTitleFor( 'Search' );
$stParams = array_merge(
$this->powerSearchOptions(),
array(
);
$related = ' -- ' . Linker::linkKnown(
- $st,
+ $this->getPageTitle(),
$this->msg( 'search-relatedarticle' )->text(),
array(),
$stParams