From 52f557b203924d37dba971bb66163c121d9f0053 Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Tue, 28 Jun 2005 21:35:23 +0000 Subject: [PATCH] set rc_this_oldid to rev_id in newfromcur so the watchlist displays the actual diff, not the combined diff for all changes --- includes/RecentChange.php | 2 +- includes/SpecialWatchlist.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/RecentChange.php b/includes/RecentChange.php index 6502d1fcce..bf6d8882cd 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -365,7 +365,7 @@ class RecentChange 'rc_minor' => !!$row->rev_minor_edit, 'rc_type' => $row->page_is_new ? RC_NEW : RC_EDIT, 'rc_cur_id' => $row->page_id, - 'rc_this_oldid' => 0, + 'rc_this_oldid' => (int)$row->rev_id, 'rc_last_oldid' => 0, 'rc_bot' => 0, 'rc_moved_to_ns' => 0, diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index 7f1fbb5cba..4d83271cd5 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -225,7 +225,7 @@ function wfSpecialWatchlist( $par ) { $use_index = $dbr->useIndexClause( $x ); $sql = "SELECT page_namespace,page_title,rev_comment, page_id, - rev_user,rev_user_text,rev_timestamp,rev_minor_edit,page_is_new,wl_notificationtimestamp + rev_user,rev_user_text,rev_timestamp,rev_minor_edit,rev_id,page_is_new,wl_notificationtimestamp FROM $watchlist,$page,$revision $use_index WHERE wl_user=$uid $andHideOwn -- 2.20.1