From 26d8975e25ce2a7173bee7e6949f444682a4e36e Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 1 Jun 2011 16:26:56 +0000 Subject: [PATCH] * (bug 29221) Expose oldrevid in watchlist output --- RELEASE-NOTES-1.19 | 1 + includes/api/ApiQueryWatchlist.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index b6b87ca724..ebf1a4849d 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -94,6 +94,7 @@ production. * (bug 20699) API watchlist should list log-events * (bug 29070) Add token to action=watch * (bug 29120) ApiQueryLogEvents: let letype accept multiple values +* (bug 29221) Expose oldrevid in watchlist output === Languages updated in 1.19 === diff --git a/includes/api/ApiQueryWatchlist.php b/includes/api/ApiQueryWatchlist.php index 9172a54d00..0443eeb183 100644 --- a/includes/api/ApiQueryWatchlist.php +++ b/includes/api/ApiQueryWatchlist.php @@ -97,7 +97,8 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase { if ( is_null( $resultPageSet ) ) { $this->addFields( array( 'rc_cur_id', - 'rc_this_oldid' + 'rc_this_oldid', + 'rc_last_oldid', ) ); $this->addFieldsIf( 'rc_new', $this->fld_flags ); @@ -237,6 +238,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase { if ( $this->fld_ids ) { $vals['pageid'] = intval( $row->rc_cur_id ); $vals['revid'] = intval( $row->rc_this_oldid ); + $vals['old_revid'] = intval( $row->rc_last_oldid ); } $title = Title::makeTitle( $row->rc_namespace, $row->rc_title ); -- 2.20.1