r100949 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100948‎ | r100949 | r100950 >
Date:06:10, 27 October 2011
Author:aaron
Status:ok
Tags:
Comment:
Hotfix for breaking change of WikiError -> Status
Modified paths:
  • /branches/REL1_18/extensions/ConfirmAccount/RequestAccount_body.php (modified) (history)

Diff [purge]

Index: branches/REL1_18/extensions/ConfirmAccount/RequestAccount_body.php
@@ -379,8 +379,9 @@
380380 # Send confirmation, required!
381381 $result = $this->sendConfirmationMail( $u, $token, $expires );
382382 if ( WikiError::isError( $result ) ) {
 383+ global $wgOut;
383384 $dbw->rollback(); // Nevermind
384 - $error = wfMsg( 'mailerror', htmlspecialchars( $result->toString() ) );
 385+ $error = wfMsg( 'mailerror', $wgOut->parse( $result->getWikiText() ) );
385386 $this->showForm( $error );
386387 return false;
387388 }

Status & tagging log