r100948 MediaWiki - Code Review archive

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

Diff [purge]

Index: branches/REL1_17/extensions/ConfirmAccount/RequestAccount_body.php
@@ -371,8 +371,9 @@
372372 # Send confirmation, required!
373373 $result = $this->sendConfirmationMail( $u, $token, $expires );
374374 if ( WikiError::isError( $result ) ) {
 375+ global $wgOut;
375376 $dbw->rollback(); // Nevermind
376 - $error = wfMsg( 'mailerror', htmlspecialchars( $result->toString() ) );
 377+ $error = wfMsg( 'mailerror', $wgOut->parse( $result->getWikiText() ) );
377378 $this->showForm( $error );
378379 return false;
379380 }

Status & tagging log