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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions BootstrapMediaWiki.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function execute() {
?>
<ul class="nav navbar-nav navbar-right">
<li>
<?php echo Linker::linkKnown( SpecialPage::getTitleFor( 'Userlogin' ), wfMsg( 'login' ) ); ?>
<?php echo Linker::linkKnown( SpecialPage::getTitleFor( 'Userlogin' ), wfMessage( 'login' ) ); ?>
</li>
</ul>
<?php
Expand Down Expand Up @@ -466,7 +466,8 @@ 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 );
$content = $article->getContent(Revision::RAW);
$parserOutput = $wgParser->preprocess($content, $pageTitle, $wgParserOptions);
return $parserOutput;
}
}
Expand All @@ -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();
}
}
Expand Down