r82514 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82513‎ | r82514 | r82515 >
Date:16:36, 20 February 2011
Author:ialex
Status:ok (Comments)
Tags:
Comment:
wfMsgReal() -> wfMsgExt()
Modified paths:
  • /trunk/phase3/includes/specials/SpecialBlockip.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialBlockip.php
@@ -131,7 +131,7 @@
132132 $otherBlockedMsgs = array();
133133 if( $err && $err[0] != 'ipb_already_blocked' ) {
134134 $key = array_shift( $err );
135 - $msg = wfMsgReal( $key, $err );
 135+ $msg = wfMsgExt( $key, 'parsemag', $err );
136136 $wgOut->setSubtitle( wfMsgHtml( 'formerror' ) );
137137 $wgOut->addHTML( Xml::tags( 'p', array( 'class' => 'error' ), $msg ) );
138138 } elseif( $this->BlockAddress !== null ) {

Comments

#Comment by Nikerabbit (talk | contribs)   17:28, 20 February 2011

Is there some reason this message should not be parsed? If not, wrapWikiMsg should be fine.

Status & tagging log