From e085e3f310b201c97c265cd160b321d146097a68 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Mon, 29 Oct 2018 21:11:54 +0100 Subject: [PATCH] Parser: Remove markNoConversion for displaytitle error message 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index d44ac8c8f0..8ab5c31433 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -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' ); -- 2.20.1