From 7d9261ce1e920e6f7d2add78a4b12d1c7485d086 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 8 Aug 2009 20:47:11 +0000 Subject: [PATCH] * (bug 20131) PHP Notice: Undfined index: page_latest in includes/ChangesList.php on line 476 Special:Recentchangeslinked now also selects the 'page_latest' field for users having the 'rollback' right, as Special:Recentchanges does --- RELEASE-NOTES | 2 ++ includes/specials/SpecialRecentchangeslinked.php | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 5b9599e3bc..2cacdc2d53 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -404,6 +404,8 @@ this. Was used when mwEmbed was going to be an extension. * (bug 19289) importDump.php can now handle bzip2 and 7zip * (bug 20103) Add after the link for "My Talk" a info with the number of the new messages for the user +* (bug 20131) Fixed a PHP notice for users having the "rollback" right on + Special:RecentChangesLinked == API changes in 1.16 == diff --git a/includes/specials/SpecialRecentchangeslinked.php b/includes/specials/SpecialRecentchangeslinked.php index 3905b43864..a5bd098f78 100644 --- a/includes/specials/SpecialRecentchangeslinked.php +++ b/includes/specials/SpecialRecentchangeslinked.php @@ -84,6 +84,11 @@ class SpecialRecentchangeslinked extends SpecialRecentchanges { $select[] = 'wl_user'; $join_conds['watchlist'] = array( 'LEFT JOIN', "wl_user={$uid} AND wl_title=rc_title AND wl_namespace=rc_namespace" ); } + if ( $wgUser->isAllowed( 'rollback' ) ) { + $tables[] = 'page'; + $join_conds['page'] = array('LEFT JOIN', 'rc_cur_id=page_id'); + $select[] = 'page_latest'; + } ChangeTags::modifyDisplayQuery( $tables, $select, $conds, $join_conds, $query_options, $opts['tagfilter'] ); -- 2.20.1