From 02ace1d8fc278771740b53707d6dd1045a64d76e Mon Sep 17 00:00:00 2001 From: umherirrender Date: Thu, 29 Jan 2015 17:45:22 +0100 Subject: [PATCH] Set context when parsing message 'redirectpagesub' in Article Change-Id: I53fc0855fc8dd57cdfcae68751c9800969208310 --- includes/page/Article.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/page/Article.php b/includes/page/Article.php index 0fc251e91f..089576d3a6 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -687,9 +687,8 @@ class Article implements Page { $this->mParserOutput = $poolArticleView->getParserOutput(); $outputPage->addParserOutput( $this->mParserOutput ); if ( $content->getRedirectTarget() ) { - $outputPage->addSubtitle( - "" . wfMessage( 'redirectpagesub' )->parse() . "" - ); + $outputPage->addSubtitle( "" . + $this->getContext()->msg( 'redirectpagesub' )->parse() . "" ); } # Don't cache a dirty ParserOutput object @@ -1458,7 +1457,7 @@ class Article implements Page { $lang = $this->getTitle()->getPageLanguage(); $out = $this->getContext()->getOutput(); if ( $appendSubtitle ) { - $out->addSubtitle( wfMessage( 'redirectpagesub' )->parse() ); + $out->addSubtitle( wfMessage( 'redirectpagesub' ) ); } $out->addModuleStyles( 'mediawiki.action.view.redirectPage' ); return static::getRedirectHeaderHtml( $lang, $target, $forceKnown ); -- 2.20.1