r112387 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112386‎ | r112387 | r112388 >
Date:13:21, 25 February 2012
Author:ialex
Status:ok
Tags:
Comment:
Use local context to get messages
Modified paths:
  • /trunk/phase3/includes/specials/SpecialFilepath.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialFilepath.php
@@ -78,10 +78,10 @@
7979 $this->getOutput()->addHTML(
8080 Html::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript, 'id' => 'specialfilepath' ) ) .
8181 Html::openElement( 'fieldset' ) .
82 - Html::element( 'legend', null, wfMsg( 'filepath' ) ) .
 82+ Html::element( 'legend', null, $this->msg( 'filepath' )->text() ) .
8383 Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) .
84 - Xml::inputLabel( wfMsg( 'filepath-page' ), 'file', 'file', 25, is_object( $title ) ? $title->getText() : '' ) . ' ' .
85 - Xml::submitButton( wfMsg( 'filepath-submit' ) ) . "\n" .
 84+ Xml::inputLabel( $this->msg( 'filepath-page' )->text(), 'file', 'file', 25, is_object( $title ) ? $title->getText() : '' ) . ' ' .
 85+ Xml::submitButton( $this->msg( 'filepath-submit' )->text() ) . "\n" .
8686 Html::closeElement( 'fieldset' ) .
8787 Html::closeElement( 'form' )
8888 );

Status & tagging log