Merge "Parse limitation warnings as 'text' and in user language"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 4 Sep 2013 08:59:06 +0000 (08:59 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 4 Sep 2013 08:59:06 +0000 (08:59 +0000)
includes/parser/Parser.php

index 1ab29eb..170148c 100644 (file)
@@ -3180,7 +3180,7 @@ class Parser {
        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();
+                       ->inLanguage( $this->mOptions->getUserLangObj() )->text();
                $this->mOutput->addWarning( $warning );
                $this->addTrackingCategory( "$limitationType-category" );
        }