jenkins-bot has submitted this change and it was merged.
Change subject: Change error/warning messages to be parsed instead of escaped
......................................................................
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
---
M includes/specials/SpecialUserlogin.php
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Jdlrobson: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/specials/SpecialUserlogin.php
b/includes/specials/SpecialUserlogin.php
index 10edbcf..c4da642 100644
--- a/includes/specials/SpecialUserlogin.php
+++ b/includes/specials/SpecialUserlogin.php
@@ -194,13 +194,13 @@
&& 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 ) {
--
To view, visit https://gerrit.wikimedia.org/r/205986
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I5af873b4807a286fd3c37acdc1b34099cd23e68f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: Phuedx <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits