r111797 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111796‎ | r111797 | r111798 >
Date:22:14, 17 February 2012
Author:ialex
Status:ok
Tags:
Comment:
Use local context to get messages
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUnblock.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUnblock.php
@@ -49,10 +49,10 @@
5050 $out->addModules( 'mediawiki.special' );
5151
5252 $form = new HTMLForm( $this->getFields(), $this->getContext() );
53 - $form->setWrapperLegend( wfMsg( 'unblockip' ) );
 53+ $form->setWrapperLegendMsg( 'unblockip' );
5454 $form->setSubmitCallback( array( __CLASS__, 'processUIUnblock' ) );
55 - $form->setSubmitText( wfMsg( 'ipusubmit' ) );
56 - $form->addPreText( wfMsgExt( 'unblockiptext', 'parse' ) );
 55+ $form->setSubmitTextMsg( 'ipusubmit' );
 56+ $form->addPreText( $this->msg( 'unblockiptext' )->parseAsBlock() );
5757
5858 if( $form->show() ){
5959 switch( $this->type ){

Sign-offs

UserFlagDate
Nikerabbitinspected09:38, 18 February 2012

Status & tagging log