mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-03 20:36:18 +00:00
Pass context page to doc-page-show message
Bug: T381185 Change-Id: I95b082a3264fe575a893530f5f9215a949240db5
This commit is contained in:
parent
9d99710d12
commit
cac5e08e27
|
@ -442,8 +442,12 @@ class Hooks implements
|
||||||
public function onArticleViewHeader( $article, &$outputDone, &$pcache ) {
|
public function onArticleViewHeader( $article, &$outputDone, &$pcache ) {
|
||||||
$title = $article->getTitle();
|
$title = $article->getTitle();
|
||||||
if ( Scribunto::isDocPage( $title, $forModule ) ) {
|
if ( Scribunto::isDocPage( $title, $forModule ) ) {
|
||||||
$article->getContext()->getOutput()->addHTML(
|
$context = $article->getContext();
|
||||||
wfMessage( 'scribunto-doc-page-header', $forModule->getPrefixedText() )->parseAsBlock()
|
$context->getOutput()->addHTML(
|
||||||
|
$context->msg(
|
||||||
|
'scribunto-doc-page-header',
|
||||||
|
$forModule->getPrefixedText()
|
||||||
|
)->parseAsBlock()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue