mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-30 19:14:22 +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 ) {
|
||||
$title = $article->getTitle();
|
||||
if ( Scribunto::isDocPage( $title, $forModule ) ) {
|
||||
$article->getContext()->getOutput()->addHTML(
|
||||
wfMessage( 'scribunto-doc-page-header', $forModule->getPrefixedText() )->parseAsBlock()
|
||||
$context = $article->getContext();
|
||||
$context->getOutput()->addHTML(
|
||||
$context->msg(
|
||||
'scribunto-doc-page-header',
|
||||
$forModule->getPrefixedText()
|
||||
)->parseAsBlock()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue