Just call $wgOut->parse() instead of doing a lot of things to call $wgParser->parse()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 3 Aug 2011 19:59:33 +0000 (19:59 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 3 Aug 2011 19:59:33 +0000 (19:59 +0000)
includes/SkinTemplate.php

index 1b8c3f7..0a4ebcb 100644 (file)
@@ -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 );
        }
 
        /**