Change error/warning messages to be parsed instead of escaped
authorkaldari <rkaldari@wikimedia.org>
Wed, 22 Apr 2015 21:51:26 +0000 (14:51 -0700)
committerkaldari <rkaldari@wikimedia.org>
Wed, 22 Apr 2015 21:53:49 +0000 (14:53 -0700)
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

index 10edbcf..c4da642 100644 (file)
@@ -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 ) {