From 7ec47052c6c38f7ba2b2f561624a97246475739b Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 7 Feb 2011 16:42:41 +0000 Subject: [PATCH] We have OutputPage::wrapWikiMsg() and OutputPage::addWikiMsg(), so use them --- includes/specials/SpecialLinkSearch.php | 2 +- includes/specials/SpecialSearch.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialLinkSearch.php b/includes/specials/SpecialLinkSearch.php index e3783d3f6b..b1b0b22afb 100644 --- a/includes/specials/SpecialLinkSearch.php +++ b/includes/specials/SpecialLinkSearch.php @@ -101,7 +101,7 @@ class LinkSearchPage extends QueryPage { 'protocol' => $protocol ) ); parent::execute( $par ); if( $this->mMungedQuery === false ) - $wgOut->addWikiText( wfMsg( 'linksearch-error' ) ); + $wgOut->addWikiMsg( 'linksearch-error' ); } } diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 18c534ed47..5d638abb5a 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -233,7 +233,7 @@ class SpecialSearch extends SpecialPage { // Sometimes the search engine knows there are too many hits if( $titleMatches instanceof SearchResultTooMany ) { - $wgOut->addWikiText( '==' . wfMsg( 'toomanymatches' ) . "==\n" ); + $wgOut->wrapWikiMsg( "==$1==\n", 'toomanymatches' ); wfProfileOut( __METHOD__ ); return; } -- 2.20.1