Use local context to get messages
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 25 Feb 2012 13:21:26 +0000 (13:21 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 25 Feb 2012 13:21:26 +0000 (13:21 +0000)
includes/specials/SpecialFilepath.php

index 101a33f..e086650 100644 (file)
@@ -78,10 +78,10 @@ class SpecialFilepath extends SpecialPage {
                $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' )
                );