We have OutputPage::wrapWikiMsg() and OutputPage::addWikiMsg(), so use them
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 7 Feb 2011 16:42:41 +0000 (16:42 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 7 Feb 2011 16:42:41 +0000 (16:42 +0000)
includes/specials/SpecialLinkSearch.php
includes/specials/SpecialSearch.php

index e3783d3..b1b0b22 100644 (file)
@@ -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' );
                }
        }
 
index 18c534e..5d638ab 100644 (file)
@@ -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;
                }