From 1a7f3124c8ba94349d10c3c39378c8f5664be5c8 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 19 Jun 2015 18:04:56 +0200 Subject: [PATCH] Use correct fields for LinkBatch on Special:NewPages The special pages is using page_namespace/page_title for the display title, not rc_namespace/rc_title. Changing this avoids a extra query for the title when a page was moved and is listed on the special page with the hint 'rc-old-title' Change-Id: Ie1e4c9b93c00534543cf75bc3ea2c7e5f8d17460 --- 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 899c7368fc..02e3325f6a 100644 --- a/includes/specials/SpecialNewpages.php +++ b/includes/specials/SpecialNewpages.php @@ -594,7 +594,7 @@ class NewPagesPager extends ReverseChronologicalPager { foreach ( $this->mResult as $row ) { $linkBatch->add( NS_USER, $row->rc_user_text ); $linkBatch->add( NS_USER_TALK, $row->rc_user_text ); - $linkBatch->add( $row->rc_namespace, $row->rc_title ); + $linkBatch->add( $row->page_namespace, $row->page_title ); } $linkBatch->execute(); -- 2.20.1