From d6e83ab667367b05cea5f3c63af0a1105aea7878 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 3 Aug 2011 19:59:33 +0000 Subject: [PATCH] Just call $wgOut->parse() instead of doing a lot of things to call $wgParser->parse() --- includes/SkinTemplate.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 1b8c3f7b13..0a4ebcb921 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -1337,12 +1337,10 @@ abstract class QuickTemplate { * @private */ function msgWiki( $str ) { - global $wgParser, $wgOut; + global $wgOut; $text = $this->translator->translate( $str ); - $parserOutput = $wgParser->parse( $text, $wgOut->getTitle(), - $wgOut->parserOptions(), true ); - echo $parserOutput->getText(); + echo $wgOut->parse( $text ); } /** -- 2.20.1