Wrap redirectpagesub in a <span>
authorAlex Monk <krenair@wikimedia.org>
Wed, 23 Jul 2014 23:00:12 +0000 (00:00 +0100)
committerAlex Monk <krenair@wikimedia.org>
Wed, 23 Jul 2014 23:11:53 +0000 (00:11 +0100)
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

includes/page/Article.php

index 2f27826..94d20b2 100644 (file)
@@ -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(
+                                                       "<span id=\"redirectsub\">" . wfMessage( 'redirectpagesub' )->parse() . "</span>"
+                                               );
                                        }
 
                                        # Don't cache a dirty ParserOutput object