From: Alexandre Emsenhuber Date: Sat, 8 Aug 2009 20:47:11 +0000 (+0000) Subject: * (bug 20131) PHP Notice: Undfined index: page_latest in includes/ChangesList.php... X-Git-Tag: 1.31.0-rc.0~40411 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=7d9261ce1e920e6f7d2add78a4b12d1c7485d086;p=lhc%2Fweb%2Fwiklou.git * (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 --- 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'] );