From 7dcc44fa34bd5f785e720e1b2489cf20aa664528 Mon Sep 17 00:00:00 2001 From: Romain Lanz Date: Tue, 27 Dec 2016 00:13:57 +0100 Subject: [PATCH 1/2] fix(deprecate): change deprecate function --- BootstrapMediaWiki.skin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BootstrapMediaWiki.skin.php b/BootstrapMediaWiki.skin.php index 5c85470..17fe226 100644 --- a/BootstrapMediaWiki.skin.php +++ b/BootstrapMediaWiki.skin.php @@ -144,7 +144,7 @@ public function execute() { ?> Date: Tue, 27 Dec 2016 00:27:39 +0100 Subject: [PATCH 2/2] fix(deprecated): fix deprecated function --- BootstrapMediaWiki.skin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BootstrapMediaWiki.skin.php b/BootstrapMediaWiki.skin.php index 17fe226..b03bf85 100644 --- a/BootstrapMediaWiki.skin.php +++ b/BootstrapMediaWiki.skin.php @@ -466,7 +466,7 @@ 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 ); + $parserOutput = $wgParser->preprocess($article->getPage()->getContent(Revision::RAW), $pageTitle, $wgParserOptions ); return $parserOutput; } } @@ -479,7 +479,7 @@ function includePage($title) { } else { $article = new Article($pageTitle); $wgParserOptions = new ParserOptions($wgUser); - $parserOutput = $wgParser->parse($article->getRawText(), $pageTitle, $wgParserOptions); + $parserOutput = $wgParser->parse($article->getPage()->getContent(Revision::RAW), $pageTitle, $wgParserOptions); echo $parserOutput->getText(); } }