From 76a61ec0e8612ed95c6f7cae8db38d6b37ed0b0c Mon Sep 17 00:00:00 2001 From: kaldari Date: Wed, 22 Apr 2015 14:51:26 -0700 Subject: [PATCH] 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 --- includes/specials/SpecialUserlogin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) { -- 2.20.1