From: kaldari Date: Wed, 22 Apr 2015 21:51:26 +0000 (-0700) Subject: Change error/warning messages to be parsed instead of escaped X-Git-Tag: 1.31.0-rc.0~11616^2 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=76a61ec0e8612ed95c6f7cae8db38d6b37ed0b0c;p=lhc%2Fweb%2Fwiklou.git Change error/warning messages to be parsed instead of escaped On Special:UserLogin, the Gather extension wants to be able to show more detailed information in the warningbox. This will allow the message to be multiline and/or include formatting (e.g. bold). Change-Id: I5af873b4807a286fd3c37acdc1b34099cd23e68f --- diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index 10edbcfb9e..c4da642b10 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -194,13 +194,13 @@ class LoginForm extends SpecialPage { && in_array( $entryError->getKey(), self::getValidErrorMessages() ) ) { $this->mEntryErrorType = 'error'; - $this->mEntryError = $entryError->rawParams( $loginreqlink )->escaped(); + $this->mEntryError = $entryError->rawParams( $loginreqlink )->parse(); } elseif ( $entryWarning->exists() && in_array( $entryWarning->getKey(), self::getValidErrorMessages() ) ) { $this->mEntryErrorType = 'warning'; - $this->mEntryError = $entryWarning->rawParams( $loginreqlink )->escaped(); + $this->mEntryError = $entryWarning->rawParams( $loginreqlink )->parse(); } if ( $wgEnableEmail ) {