borkweb / BootstrapMediaWiki

A MediaWiki skin using Bootstrap 4 & FontAwesome 4
Apache License 2.0
266 stars 249 forks source link

Fix Bootstrap theme for MediaWiki 1.28 #75

Open yaypaul opened 7 years ago

yaypaul commented 7 years ago

Had some trouble integrating Bootstrap theme with the latest build of MediaWiki, these tweaks did the trick. Replace wfMsg() with wfMessage() Replace $article->getRawText() with $article->getContent(Revision::RAW)

Reception123 commented 7 years ago

anyone?

bschwenk commented 7 years ago

@yaypaul I required further changes in order to make this work with 1.28.1 (line 481):

    $article = new WikiPage($pageTitle);
    $wgParserOptions = new ParserOptions($wgUser);
    $content = $article->getContent(Revision::RAW);
    $parserOutput = $wgParser->parse($content->mText, $pageTitle, $wgParserOptions);
    echo $parserOutput->getText();