From cdf33f591c6a6ff87241c7b093728ac3e400e65e Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sat, 19 Nov 2011 17:21:43 +0000 Subject: [PATCH] (bug 30368) When a page is moved, link to and display the new name rather than the old name on Special:Newpages. Did this by treating relying on rc_cur_id instead of rc_namespace & rc_title when building the list. This is safe because the Newpages query already joins against page, so we know the rc_cur_id points to an existing page. --- includes/specials/SpecialNewpages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialNewpages.php b/includes/specials/SpecialNewpages.php index 7028aea9fc..2467717703 100644 --- a/includes/specials/SpecialNewpages.php +++ b/includes/specials/SpecialNewpages.php @@ -297,7 +297,7 @@ class SpecialNewpages extends IncludableSpecialPage { $lang = $this->getLang(); $dm = $lang->getDirMark(); - $title = Title::makeTitleSafe( $result->rc_namespace, $result->rc_title ); + $title = Title::newFromID( $result->rc_cur_id ); $spanTime = Html::element( 'span', array( 'class' => 'mw-newpages-time' ), $lang->timeanddate( $result->rc_timestamp, true ) ); -- 2.20.1