From: River Tarnell Date: Tue, 28 Jun 2005 21:35:23 +0000 (+0000) Subject: set rc_this_oldid to rev_id in newfromcur so the watchlist displays the actual diff, X-Git-Tag: 1.5.0beta2~147 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=52f557b203924d37dba971bb66163c121d9f0053;p=lhc%2Fweb%2Fwiklou.git set rc_this_oldid to rev_id in newfromcur so the watchlist displays the actual diff, not the combined diff for all changes --- 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