From: Alexandre Emsenhuber Date: Wed, 3 Aug 2011 19:59:33 +0000 (+0000) Subject: Just call $wgOut->parse() instead of doing a lot of things to call $wgParser->parse() X-Git-Tag: 1.31.0-rc.0~28452 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=d6e83ab667367b05cea5f3c63af0a1105aea7878;p=lhc%2Fweb%2Fwiklou.git Just call $wgOut->parse() instead of doing a lot of things to call $wgParser->parse() --- 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 ); } /**