r87837 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87836‎ | r87837 | r87838 >
Date:19:24, 10 May 2011
Author:ialex
Status:ok
Tags:
Comment:
Simplify code by using OutputPage::wrapWikiMsg()
Modified paths:
  • /trunk/extensions/CheckUser/CheckUser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/CheckUser_body.php
@@ -1354,7 +1354,7 @@
13551355 $wgOut->addHTML( $s );
13561356
13571357 if ( $error !== false ) {
1358 - $wgOut->addWikiText( '<div class="errorbox">' . wfMsg( $error ) . '</div>' );
 1358+ $wgOut->wrapWikiMsg( '<div class="errorbox">$1</div>', $error );
13591359 return;
13601360 }
13611361

Status & tagging log