(bug 30368) When a page is moved, link to and display the new name rather than the...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 19 Nov 2011 17:21:43 +0000 (17:21 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 19 Nov 2011 17:21:43 +0000 (17:21 +0000)
includes/specials/SpecialNewpages.php

index 7028aea..2467717 100644 (file)
@@ -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 )
                );