From b3eb9581caba76df418cd6c67a499fd7d3f4b75f Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Fri, 1 Jul 2005 21:18:20 +0000 Subject: [PATCH] allow loadFromCurRow to allow an optional lastid --- includes/RecentChange.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/RecentChange.php b/includes/RecentChange.php index 9495057c9c..0909c99bff 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -360,7 +360,7 @@ class RecentChange } # Makes a pseudo-RC entry from a cur row, for watchlists and things - function loadFromCurRow( $row ) + function loadFromCurRow( $row, $rc_last_oldid = 0 ) { $this->mAttribs = array( 'rc_timestamp' => $row->rev_timestamp, @@ -374,7 +374,7 @@ class RecentChange 'rc_type' => $row->page_is_new ? RC_NEW : RC_EDIT, 'rc_cur_id' => $row->page_id, 'rc_this_oldid' => (int)$row->rev_id, - 'rc_last_oldid' => 0, + 'rc_last_oldid' => (int)$rc_last_oldid, 'rc_bot' => 0, 'rc_moved_to_ns' => 0, 'rc_moved_to_title' => '', -- 2.20.1