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

Revision: 112387
Author:   ialex
Date:     2012-02-25 13:21:26 +0000 (Sat, 25 Feb 2012)
Log Message:
-----------
Use local context to get messages

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

Modified: trunk/phase3/includes/specials/SpecialFilepath.php
===================================================================
--- trunk/phase3/includes/specials/SpecialFilepath.php  2012-02-25 12:19:57 UTC 
(rev 112386)
+++ trunk/phase3/includes/specials/SpecialFilepath.php  2012-02-25 13:21:26 UTC 
(rev 112387)
@@ -78,10 +78,10 @@
                $this->getOutput()->addHTML(
                        Html::openElement( 'form', array( 'method' => 'get', 
'action' => $wgScript, 'id' => 'specialfilepath' ) ) .
                        Html::openElement( 'fieldset' ) .
-                       Html::element( 'legend', null, wfMsg( 'filepath' ) ) .
+                       Html::element( 'legend', null, $this->msg( 'filepath' 
)->text() ) .
                        Html::hidden( 'title', 
$this->getTitle()->getPrefixedText() ) .
-                       Xml::inputLabel( wfMsg( 'filepath-page' ), 'file', 
'file', 25, is_object( $title ) ? $title->getText() : '' ) . ' ' .
-                       Xml::submitButton( wfMsg( 'filepath-submit' ) ) . "\n" .
+                       Xml::inputLabel( $this->msg( 'filepath-page' )->text(), 
'file', 'file', 25, is_object( $title ) ? $title->getText() : '' ) . ' ' .
+                       Xml::submitButton( $this->msg( 'filepath-submit' 
)->text() ) . "\n" .
                        Html::closeElement( 'fieldset' ) .
                        Html::closeElement( 'form' )
                );


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

Reply via email to