Parser: Remove markNoConversion for displaytitle error message
authorFomafix <fomafix@googlemail.com>
Mon, 29 Oct 2018 20:11:54 +0000 (21:11 +0100)
committerFomafix <fomafix@googlemail.com>
Mon, 29 Oct 2018 20:23:52 +0000 (21:23 +0100)
bacd87e49 moved the displaytitle error message from the content to
outside of the content. Only the content is converted by the language
conversion. The error message outside of the content is not converted.
Therefor markNoConversion is not needed here anymore.

This change removes the -{R|...}- around the displaytitle in the error
message when the language converter is active.

Bug: T208249
Change-Id: Ieec43e9af045d19b0b7a82afb889e076b347eed1

includes/parser/CoreParserFunctions.php

index d44ac8c..8ab5c31 100644 (file)
@@ -455,11 +455,10 @@ class CoreParserFunctions {
                                return '';
                        }
                } else {
-                       $converter = $parser->getTargetLanguage()->getConverter();
                        $parser->getOutput()->addWarning(
                                wfMessage( 'restricted-displaytitle',
                                        // Message should be parsed, but this param should only be escaped.
-                                       $converter->markNoConversion( wfEscapeWikiText( $text ) )
+                                       wfEscapeWikiText( $text )
                                )->text()
                        );
                        $parser->addTrackingCategory( 'restricted-displaytitle-ignored' );