X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fparser%2FCoreParserFunctions.php;h=d44ac8c8f04827742b708665be3f44f42f793569;hp=ae7ca6d428f578b60ff1eb0332cad65d551139b2;hb=74d04edec385aa86ee01943b9a27475d79f74e78;hpb=9bd9b2f02b3001e1a90ec2861a31cb54b7c7f1ed diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index ae7ca6d428..d44ac8c8f0 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -98,11 +98,6 @@ class CoreParserFunctions { $args = array_slice( func_get_args(), 2 ); $message = wfMessage( $part1, $args ) ->inLanguage( $parser->getOptions()->getUserLangObj() ); - if ( !$message->exists() ) { - // When message does not exists, the message name is surrounded by angle - // and can result in a tag, therefore escape the angles - return $message->escaped(); - } return [ $message->plain(), 'noparse' => false ]; } else { return [ 'found' => false ]; @@ -950,7 +945,8 @@ class CoreParserFunctions { } public static function special( $parser, $text ) { - list( $page, $subpage ) = SpecialPageFactory::resolveAlias( $text ); + list( $page, $subpage ) = MediaWikiServices::getInstance()->getSpecialPageFactory()-> + resolveAlias( $text ); if ( $page ) { $title = SpecialPage::getTitleFor( $page, $subpage ); return $title->getPrefixedText();