Index: trunk/extensions/CodeReview/api/ApiCodeComments.php |
— | — | @@ -76,6 +76,8 @@ |
77 | 77 | |
78 | 78 | private function formatRow( $row ) { |
79 | 79 | $item = array(); |
| 80 | + if ( isset( $this->props['revid'] ) ) |
| 81 | + $item['revid'] = $row->cc_rev_id; |
80 | 82 | if ( isset( $this->props['timestamp'] ) ) |
81 | 83 | $item['timestamp'] = wfTimestamp( TS_ISO_8601, $row->cc_timestamp ); |
82 | 84 | if ( isset( $this->props['user'] ) ) |
— | — | @@ -102,12 +104,13 @@ |
103 | 105 | ), |
104 | 106 | 'prop' => array ( |
105 | 107 | ApiBase :: PARAM_ISMULTI => true, |
106 | | - ApiBase :: PARAM_DFLT => 'timestamp|user|revision', |
| 108 | + ApiBase :: PARAM_DFLT => 'timestamp|user|revision|revid', |
107 | 109 | ApiBase :: PARAM_TYPE => array ( |
108 | 110 | 'timestamp', |
109 | 111 | 'user', |
110 | 112 | 'revision', |
111 | 113 | 'text', |
| 114 | + 'revid', |
112 | 115 | ), |
113 | 116 | ), |
114 | 117 | ); |