Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Bootstrap theme for MediaWiki 1.28 #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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