Use local context to get messages
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 17 Feb 2012 22:14:31 +0000 (22:14 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 17 Feb 2012 22:14:31 +0000 (22:14 +0000)
includes/specials/SpecialUnblock.php

index 79e8996..4ad31a0 100644 (file)
@@ -49,10 +49,10 @@ class SpecialUnblock extends SpecialPage {
                $out->addModules( 'mediawiki.special' );
 
                $form = new HTMLForm( $this->getFields(), $this->getContext() );
-               $form->setWrapperLegend( wfMsg( 'unblockip' ) );
+               $form->setWrapperLegendMsg( 'unblockip' );
                $form->setSubmitCallback( array( __CLASS__, 'processUIUnblock' ) );
-               $form->setSubmitText( wfMsg( 'ipusubmit' ) );
-               $form->addPreText( wfMsgExt( 'unblockiptext', 'parse' ) );
+               $form->setSubmitTextMsg( 'ipusubmit' );
+               $form->addPreText( $this->msg( 'unblockiptext' )->parseAsBlock() );
 
                if( $form->show() ){
                        switch( $this->type ){