diff --git a/BootstrapMediaWiki.skin.php b/BootstrapMediaWiki.skin.php index 5c85470..f551a61 100644 --- a/BootstrapMediaWiki.skin.php +++ b/BootstrapMediaWiki.skin.php @@ -106,9 +106,10 @@ public function execute() { @@ -466,7 +470,8 @@ function getPageRawText($title) { $wgParserOptions = new ParserOptions($wgUser); // get the text as static wiki text, but with already expanded templates, // which also e.g. to use {{#dpl}} (DPL third party extension) for dynamic menus. - $parserOutput = $wgParser->preprocess($article->getRawText(), $pageTitle, $wgParserOptions ); + $content = $article->getContent( Revision::RAW ); + $parserOutput = $wgParser->preprocess($content, $pageTitle, $wgParserOptions ); return $parserOutput; } } @@ -479,7 +484,8 @@ function includePage($title) { } else { $article = new Article($pageTitle); $wgParserOptions = new ParserOptions($wgUser); - $parserOutput = $wgParser->parse($article->getRawText(), $pageTitle, $wgParserOptions); + $content = $article->getContent( Revision::RAW ); + $parserOutput = $wgParser->parse($content, $pageTitle, $wgParserOptions); echo $parserOutput->getText(); } }