set rc_this_oldid to rev_id in newfromcur so the watchlist displays the actual diff,
authorRiver Tarnell <kateturner@users.mediawiki.org>
Tue, 28 Jun 2005 21:35:23 +0000 (21:35 +0000)
committerRiver Tarnell <kateturner@users.mediawiki.org>
Tue, 28 Jun 2005 21:35:23 +0000 (21:35 +0000)
not the combined diff for all changes

includes/RecentChange.php
includes/SpecialWatchlist.php

index 6502d1f..bf6d888 100644 (file)
@@ -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,
index 7f1fbb5..4d83271 100644 (file)
@@ -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