Skip to content
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: 4 additions & 4 deletions CustomNavBlocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function addCustomNavBlocks($skin, $tpl) {

$parserOptions = new ParserOptions();

$CustomNavBlocksRaw = $tpl->translator->translate('CustomNavBlocks');
$CustomNavBlocksRaw = wfMessage('CustomNavBlocks')->text();
$CustomNavBlocksClean = trim(preg_replace(
array('/<!--(.*)-->/s'), array(''), $CustomNavBlocksRaw));
$blocks = explode("\n", $CustomNavBlocksClean);
Expand Down Expand Up @@ -69,9 +69,9 @@ function addCustomNavBlocks($skin, $tpl) {
}
} else {
# get article and content:
$content = $tpl->translator->translate("$definition");

# parse the mediawiki-syntax into html:
$content = wfMessage("$definition")->text();
# parse the mediawiki-syntax into html:
$content = $wgParser->preprocess(
$content, $title, $parserOptions);
$parserOutput = $wgParser->parse(
Expand Down