From: Sam Reed Date: Wed, 1 Jun 2011 16:26:56 +0000 (+0000) Subject: * (bug 29221) Expose oldrevid in watchlist output X-Git-Tag: 1.31.0-rc.0~29802 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27votes%27%2C%20votes=%27waiting%27%29%20%7D%7D?a=commitdiff_plain;h=26d8975e25ce2a7173bee7e6949f444682a4e36e;p=lhc%2Fweb%2Fwiklou.git * (bug 29221) Expose oldrevid in watchlist output --- 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 );