From: Alex Monk Date: Wed, 23 Jul 2014 23:00:12 +0000 (+0100) Subject: Wrap redirectpagesub in a X-Git-Tag: 1.31.0-rc.0~14751^2 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=38a86002080ce3badedf78e856d5a5122b198d42;p=lhc%2Fweb%2Fwiklou.git Wrap redirectpagesub in a So that JS can easily single it out from the other contentSub stuff. VE is currently trying to just overwrite the whole of contentSub to add/remove this, causing bug 68432. Change-Id: I780c965b93535dcfe7236ab118f42439caa55abe --- diff --git a/includes/page/Article.php b/includes/page/Article.php index 2f27826265..94d20b2fbe 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -703,7 +703,9 @@ class Article implements Page { $this->mParserOutput = $poolArticleView->getParserOutput(); $outputPage->addParserOutput( $this->mParserOutput ); if ( $content->getRedirectTarget() ) { - $outputPage->addSubtitle( wfMessage( 'redirectpagesub' )->parse() ); + $outputPage->addSubtitle( + "" . wfMessage( 'redirectpagesub' )->parse() . "" + ); } # Don't cache a dirty ParserOutput object