r65755 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65754‎ | r65755 | r65756 >
Date:19:09, 1 May 2010
Author:catrope
Status:ok
Tags:
Comment:
CodeReview: (bug 23366) Add revids to list=codecomments output
Modified paths:
  • /trunk/extensions/CodeReview/api/ApiCodeComments.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/api/ApiCodeComments.php
@@ -76,6 +76,8 @@
7777
7878 private function formatRow( $row ) {
7979 $item = array();
 80+ if ( isset( $this->props['revid'] ) )
 81+ $item['revid'] = $row->cc_rev_id;
8082 if ( isset( $this->props['timestamp'] ) )
8183 $item['timestamp'] = wfTimestamp( TS_ISO_8601, $row->cc_timestamp );
8284 if ( isset( $this->props['user'] ) )
@@ -102,12 +104,13 @@
103105 ),
104106 'prop' => array (
105107 ApiBase :: PARAM_ISMULTI => true,
106 - ApiBase :: PARAM_DFLT => 'timestamp|user|revision',
 108+ ApiBase :: PARAM_DFLT => 'timestamp|user|revision|revid',
107109 ApiBase :: PARAM_TYPE => array (
108110 'timestamp',
109111 'user',
110112 'revision',
111113 'text',
 114+ 'revid',
112115 ),
113116 ),
114117 );

Status & tagging log