Index: trunk/phase3/includes/specials/SpecialNewpages.php |
— | — | @@ -356,11 +356,11 @@ |
357 | 357 | |
358 | 358 | $css = count( $classes ) ? ' class="' . implode( ' ', $classes ) . '"' : ''; |
359 | 359 | |
360 | | - # Display the old title if the namespace has been changed |
| 360 | + # Display the old title if the namespace/title has been changed |
361 | 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(); |
| 362 | + $oldTitle = Title::makeTitle( $result->rc_namespace, $result->rc_title ); |
| 363 | + if ( !$title->equals( $oldTitle ) ) { |
| 364 | + $oldTitleText = wfMessage( 'rc-old-title' )->params( $oldTitle->getPrefixedText() )->escaped(); |
365 | 365 | } |
366 | 366 | |
367 | 367 | return "<li{$css}>{$time} {$dm}{$plink} {$hist} {$dm}{$length} {$dm}{$ulink} {$comment} {$tagDisplay} {$oldTitleText}</li>\n"; |