From: Sidhant Gupta Date: Sun, 2 Oct 2016 15:23:34 +0000 (+0530) Subject: Special:NewPages - add for "originally created as..." X-Git-Tag: 1.31.0-rc.0~5245 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/Bar?a=commitdiff_plain;h=78016580cc4b612f1dc8dc99802b733035e75917;p=lhc%2Fweb%2Fwiklou.git Special:NewPages - add for "originally created as..." Add span tag around the old title line in the Special New Page. Bug: T146145 Change-Id: I7578e94284710250eab9f23dbef2777b58031faa --- diff --git a/includes/specials/SpecialNewpages.php b/includes/specials/SpecialNewpages.php old mode 100644 new mode 100755 index 718a6dc794..d719e53bdd --- a/includes/specials/SpecialNewpages.php +++ b/includes/specials/SpecialNewpages.php @@ -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 "{$time} {$dm}{$plink} {$hist} {$dm}{$length} "