From: Alexandre Emsenhuber Date: Mon, 7 Feb 2011 16:42:41 +0000 (+0000) Subject: We have OutputPage::wrapWikiMsg() and OutputPage::addWikiMsg(), so use them X-Git-Tag: 1.31.0-rc.0~32139 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=7ec47052c6c38f7ba2b2f561624a97246475739b;p=lhc%2Fweb%2Fwiklou.git We have OutputPage::wrapWikiMsg() and OutputPage::addWikiMsg(), so use them --- 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; }