Special:NewPages - add <span> for "originally created as..."
authorSidhant Gupta <guptasidhant004@gmail.com>
Sun, 2 Oct 2016 15:23:34 +0000 (20:53 +0530)
committerReedy <reedy@wikimedia.org>
Sun, 2 Oct 2016 19:10:05 +0000 (19:10 +0000)
Add span tag around the old title line in the Special New Page.

Bug: T146145
Change-Id: I7578e94284710250eab9f23dbef2777b58031faa

includes/specials/SpecialNewpages.php [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 718a6dc..d719e53
@@ -376,7 +376,11 @@ class SpecialNewpages extends IncludableSpecialPage {
 
                if ( !$title->equals( $oldTitle ) ) {
                        $oldTitleText = $oldTitle->getPrefixedText();
-                       $oldTitleText = $this->msg( 'rc-old-title' )->params( $oldTitleText )->escaped();
+                       $oldTitleText = Html::rawElement(
+                               'span',
+                               [ 'class' => 'mw-newpages-oldtitle' ],
+                               $this->msg( 'rc-old-title' )->params( $oldTitleText )->escaped()
+                       );
                }
 
                return "<li{$css}>{$time} {$dm}{$plink} {$hist} {$dm}{$length} "