Skip to content

Conversation

yaypaul
Copy link

@yaypaul yaypaul commented Feb 12, 2017

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)

Replace wfMsg() with wfMessage()
Replace $article->getRawText() with $article->getContent(Revision::RAW)
@Reception123
Copy link

anyone?

@bschwenk
Copy link

bschwenk commented Aug 4, 2017

@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();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants