From 39e39887e8e65433d315844f5155d67bb3b41b50 Mon Sep 17 00:00:00 2001 From: YayPaul Date: Sat, 11 Feb 2017 23:41:20 -0800 Subject: [PATCH] Fix Bootstrap theme for MediaWiki 1.28 Replace wfMsg() with wfMessage() Replace $article->getRawText() with $article->getContent(Revision::RAW) --- BootstrapMediaWiki.skin.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(); } }