'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,
$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