Index: trunk/phase3/includes/specials/SpecialNewpages.php |
— | — | @@ -356,7 +356,14 @@ |
357 | 357 | |
358 | 358 | $css = count( $classes ) ? ' class="' . implode( ' ', $classes ) . '"' : ''; |
359 | 359 | |
360 | | - return "<li{$css}>{$time} {$dm}{$plink} {$hist} {$dm}{$length} {$dm}{$ulink} {$comment} {$tagDisplay}</li>\n"; |
| 360 | + # Display the old title if the namespace has been changed |
| 361 | + $oldTitleText = ''; |
| 362 | + if ( $result->page_namespace !== $result->rc_namespace ) { |
| 363 | + $oldTitleText = wfMessage( 'rc-old-title' )->params( Title::makeTitle( $result->rc_namespace, $result->rc_title ) |
| 364 | + ->getPrefixedText() )->escaped(); |
| 365 | + } |
| 366 | + |
| 367 | + return "<li{$css}>{$time} {$dm}{$plink} {$hist} {$dm}{$length} {$dm}{$ulink} {$comment} {$tagDisplay} {$oldTitleText}</li>\n"; |
361 | 368 | } |
362 | 369 | |
363 | 370 | /** |
Index: trunk/phase3/languages/messages/MessagesQqq.php |
— | — | @@ -1789,6 +1789,7 @@ |
1790 | 1790 | Does not work under $wgMiserMode ([[mwr:48986|r48986]]).', |
1791 | 1791 | 'rc-change-size-new' => 'Tooltip when hovering a change list diff size. The tooltip shows the resulting new size in bytes.', |
1792 | 1792 | 'newsectionsummary' => 'Default summary when adding a new section to a page.', |
| 1793 | +'rc-old-title' => 'Text that shows the original title of a page, $1 is the original title text', |
1793 | 1794 | |
1794 | 1795 | # Recent changes linked |
1795 | 1796 | 'recentchangeslinked' => 'Title of [[Special:RecentChangesLinked]] and display name of page on [[Special:SpecialPages]].', |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -2073,6 +2073,7 @@ |
2074 | 2074 | 'newsectionsummary' => '/* $1 */ new section', |
2075 | 2075 | 'rc-enhanced-expand' => 'Show details (requires JavaScript)', |
2076 | 2076 | 'rc-enhanced-hide' => 'Hide details', |
| 2077 | +'rc-old-title' => 'originally created as "$1"', |
2077 | 2078 | |
2078 | 2079 | # Recent changes linked |
2079 | 2080 | 'recentchangeslinked' => 'Related changes', |