diff --git a/BootstrapMediaWiki.skin.php b/BootstrapMediaWiki.skin.php index 5c85470..1c9b7da 100644 --- a/BootstrapMediaWiki.skin.php +++ b/BootstrapMediaWiki.skin.php @@ -144,7 +144,7 @@ public function execute() { ?> preprocess($article->getRawText(), $pageTitle, $wgParserOptions ); + $content = $article->getContent(Revision::RAW); + $parserOutput = $wgParser->preprocess($content, $pageTitle, $wgParserOptions); return $parserOutput; } } @@ -479,7 +480,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(); } }