r112626 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112625‎ | r112626 | r112627 >
Date:18:46, 28 February 2012
Author:ialex
Status:ok
Tags:
Comment:
Use local context to get messages
Modified paths:
  • /trunk/phase3/includes/specials/SpecialLinkSearch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialLinkSearch.php
@@ -88,13 +88,13 @@
8989 $s = Xml::openElement( 'form', array( 'id' => 'mw-linksearch-form', 'method' => 'get', 'action' => $GLOBALS['wgScript'] ) ) .
9090 Html::hidden( 'title', $this->getTitle()->getPrefixedDbKey() ) .
9191 '<fieldset>' .
92 - Xml::element( 'legend', array(), wfMsg( 'linksearch' ) ) .
93 - Xml::inputLabel( wfMsg( 'linksearch-pat' ), 'target', 'target', 50, $target ) . ' ';
 92+ Xml::element( 'legend', array(), $this->msg( 'linksearch' )->text() ) .
 93+ Xml::inputLabel( $this->msg( 'linksearch-pat' )->text(), 'target', 'target', 50, $target ) . ' ';
9494 if ( !$wgMiserMode ) {
95 - $s .= Xml::label( wfMsg( 'linksearch-ns' ), 'namespace' ) . ' ' .
 95+ $s .= Xml::label( $this->msg( 'linksearch-ns' )->text(), 'namespace' ) . ' ' .
9696 Xml::namespaceSelector( $namespace, '' );
9797 }
98 - $s .= Xml::submitButton( wfMsg( 'linksearch-ok' ) ) .
 98+ $s .= Xml::submitButton( $this->msg( 'linksearch-ok' )->text() ) .
9999 '</fieldset>' .
100100 Xml::closeElement( 'form' );
101101 $out->addHTML( $s );
@@ -181,7 +181,7 @@
182182 $pageLink = Linker::linkKnown( $title );
183183 $urlLink = Linker::makeExternalLink( $url, $url );
184184
185 - return wfMsgHtml( 'linksearch-line', $urlLink, $pageLink );
 185+ return $this->msg( 'linksearch-line' )->rawParams( $urlLink, $pageLink )->escaped();
186186 }
187187
188188 /**

Sign-offs

UserFlagDate
Nikerabbitinspected07:36, 29 February 2012

Status & tagging log