r89271 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89270‎ | r89271 | r89272 >
Date:16:26, 1 June 2011
Author:reedy
Status:ok
Tags:
Comment:
* (bug 29221) Expose oldrevid in watchlist output
Modified paths:
  • /trunk/phase3/RELEASE-NOTES-1.19 (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryWatchlist.php (modified) (history)

Diff [purge]

Index: trunk/phase3/RELEASE-NOTES-1.19
@@ -94,6 +94,7 @@
9595 * (bug 20699) API watchlist should list log-events
9696 * (bug 29070) Add token to action=watch
9797 * (bug 29120) ApiQueryLogEvents: let letype accept multiple values
 98+* (bug 29221) Expose oldrevid in watchlist output
9899
99100 === Languages updated in 1.19 ===
100101
Index: trunk/phase3/includes/api/ApiQueryWatchlist.php
@@ -97,7 +97,8 @@
9898 if ( is_null( $resultPageSet ) ) {
9999 $this->addFields( array(
100100 'rc_cur_id',
101 - 'rc_this_oldid'
 101+ 'rc_this_oldid',
 102+ 'rc_last_oldid',
102103 ) );
103104
104105 $this->addFieldsIf( 'rc_new', $this->fld_flags );
@@ -237,6 +238,7 @@
238239 if ( $this->fld_ids ) {
239240 $vals['pageid'] = intval( $row->rc_cur_id );
240241 $vals['revid'] = intval( $row->rc_this_oldid );
 242+ $vals['old_revid'] = intval( $row->rc_last_oldid );
241243 }
242244
243245 $title = Title::makeTitle( $row->rc_namespace, $row->rc_title );

Status & tagging log