Index: trunk/extensions/CodeReview/api/ApiQueryCodeRevisions.php |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | |
69 | 69 | } else { |
70 | 70 | if ( !is_null( $params['start'] ) ) { |
71 | | - $pager->setOffset( $this->getDB()->timestamp( $params['start'] ) ); |
| 71 | + $pager->setOffset( $params['start'] ); |
72 | 72 | } |
73 | 73 | $limit = $params['limit']; |
74 | 74 | $pager->setLimit( $limit ); |
— | — | @@ -78,16 +78,16 @@ |
79 | 79 | } |
80 | 80 | |
81 | 81 | $count = 0; |
82 | | - $lastTimestamp = 0; |
| 82 | + $lastId = 0; |
83 | 83 | foreach ( $revisions as $row ) { |
84 | 84 | if ( !$revsSet && $count == $limit ) { |
85 | 85 | $this->setContinueEnumParameter( 'start', |
86 | | - wfTimestamp( TS_ISO_8601, $lastTimestamp ) ); |
| 86 | + $lastId ); |
87 | 87 | break; |
88 | 88 | } |
89 | 89 | |
90 | 90 | $data[] = $this->formatRow( $row ); |
91 | | - $lastTimestamp = $row->cr_timestamp; |
| 91 | + $lastId = $row->cr_id; |
92 | 92 | $count++; |
93 | 93 | } |
94 | 94 | |
— | — | @@ -136,7 +136,7 @@ |
137 | 137 | ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2 |
138 | 138 | ), |
139 | 139 | 'start' => array( |
140 | | - ApiBase::PARAM_TYPE => 'timestamp' |
| 140 | + ApiBase::PARAM_TYPE => 'integer' |
141 | 141 | ), |
142 | 142 | 'revs' => array( |
143 | 143 | ApiBase::PARAM_ISMULTI => true, |