* (bug 29221) Expose oldrevid in watchlist output
authorSam Reed <reedy@users.mediawiki.org>
Wed, 1 Jun 2011 16:26:56 +0000 (16:26 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 1 Jun 2011 16:26:56 +0000 (16:26 +0000)
RELEASE-NOTES-1.19
includes/api/ApiQueryWatchlist.php

index b6b87ca..ebf1a48 100644 (file)
@@ -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 ===
 
index 9172a54..0443eeb 100644 (file)
@@ -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 );