Umherirrender has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/80791


Change subject: Parse limiation warnings as 'text'
......................................................................

Parse limiation warnings as 'text'

The default limitation warning messages contains wiki markup to get bold
text, which does not get parsed with 'escaped'

Change-Id: Ibccfacc9a6b9c43491e3b4ca8f5e8f6a6b1efae9
---
M includes/parser/Parser.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/91/80791/1

diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php
index 1ab29eb..f8d3b64 100644
--- a/includes/parser/Parser.php
+++ b/includes/parser/Parser.php
@@ -3180,7 +3180,7 @@
        function limitationWarn( $limitationType, $current = '', $max = '' ) {
                # does no harm if $current and $max are present but are 
unnecessary for the message
                $warning = wfMessage( "$limitationType-warning" )->numParams( 
$current, $max )
-                       ->inContentLanguage()->escaped();
+                       ->inContentLanguage()->text();
                $this->mOutput->addWarning( $warning );
                $this->addTrackingCategory( "$limitationType-category" );
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/80791
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibccfacc9a6b9c43491e3b4ca8f5e8f6a6b1efae9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to