https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112626

Revision: 112626
Author:   ialex
Date:     2012-02-28 18:46:36 +0000 (Tue, 28 Feb 2012)
Log Message:
-----------
Use local context to get messages

Modified Paths:
--------------
    trunk/phase3/includes/specials/SpecialLinkSearch.php

Modified: trunk/phase3/includes/specials/SpecialLinkSearch.php
===================================================================
--- trunk/phase3/includes/specials/SpecialLinkSearch.php        2012-02-28 
18:41:36 UTC (rev 112625)
+++ trunk/phase3/includes/specials/SpecialLinkSearch.php        2012-02-28 
18:46:36 UTC (rev 112626)
@@ -88,13 +88,13 @@
                $s = Xml::openElement( 'form', array( 'id' => 
'mw-linksearch-form', 'method' => 'get', 'action' => $GLOBALS['wgScript'] ) ) .
                        Html::hidden( 'title', 
$this->getTitle()->getPrefixedDbKey() ) .
                        '<fieldset>' .
-                       Xml::element( 'legend', array(), wfMsg( 'linksearch' ) 
) .
-                       Xml::inputLabel( wfMsg( 'linksearch-pat' ), 'target', 
'target', 50, $target ) . ' ';
+                       Xml::element( 'legend', array(), $this->msg( 
'linksearch' )->text() ) .
+                       Xml::inputLabel( $this->msg( 'linksearch-pat' 
)->text(), 'target', 'target', 50, $target ) . ' ';
                if ( !$wgMiserMode ) {
-                       $s .= Xml::label( wfMsg( 'linksearch-ns' ), 'namespace' 
) . ' ' .
+                       $s .= Xml::label( $this->msg( 'linksearch-ns' 
)->text(), 'namespace' ) . ' ' .
                                Xml::namespaceSelector( $namespace, '' );
                }
-               $s .=   Xml::submitButton( wfMsg( 'linksearch-ok' ) ) .
+               $s .=   Xml::submitButton( $this->msg( 'linksearch-ok' 
)->text() ) .
                        '</fieldset>' .
                        Xml::closeElement( 'form' );
                $out->addHTML( $s );
@@ -181,7 +181,7 @@
                $pageLink = Linker::linkKnown( $title );
                $urlLink = Linker::makeExternalLink( $url, $url );
 
-               return wfMsgHtml( 'linksearch-line', $urlLink, $pageLink );
+               return $this->msg( 'linksearch-line' )->rawParams( $urlLink, 
$pageLink )->escaped();
        }
 
        /**


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to