Index: trunk/phase3/includes/api/ApiQueryAllLinks.php |
— | — | @@ -127,8 +127,10 @@ |
128 | 128 | $fit = $result->addValue(array('query', $this->getModuleName()), null, $vals); |
129 | 129 | if(!$fit) |
130 | 130 | { |
131 | | - $this->setContinueEnumParameter('continue', |
132 | | - $this->keyToTitle($row->pl_title) . "|" . $row->pl_from); |
| 131 | + if($params['unique']) |
| 132 | + $this->setContinueEnumParameter('from', $this->keyToTitle($row->pl_title)); |
| 133 | + else |
| 134 | + $this->setContinueEnumParameter('continue', $this->keyToTitle($row->pl_title) . "|" . $row->pl_from); |
133 | 135 | break; |
134 | 136 | } |
135 | 137 | } else { |
Index: trunk/phase3/includes/api/ApiQueryDeletedrevs.php |
— | — | @@ -229,7 +229,11 @@ |
230 | 230 | } |
231 | 231 | if(!$fit) |
232 | 232 | { |
233 | | - $this->setContinueEnumParameter('start', wfTimestamp(TS_ISO_8601, $row->ar_timestamp)); |
| 233 | + if($mode == 'all') |
| 234 | + $this->setContinueEnumParameter('continue', $this->keyToTitle($row->ar_title) . '|' . |
| 235 | + $row->ar_timestamp); |
| 236 | + else |
| 237 | + $this->setContinueEnumParameter('start', wfTimestamp(TS_ISO_8601, $row->ar_timestamp)); |
234 | 238 | break; |
235 | 239 | } |
236 | 240 | } |
Index: trunk/phase3/includes/api/ApiQueryAllmessages.php |
— | — | @@ -76,7 +76,7 @@ |
77 | 77 | $messages = array(); |
78 | 78 | foreach( $messages_target as $message ) { |
79 | 79 | if(!is_null($params['from'])) |
80 | | - if($message < $params['from']) |
| 80 | + if($message != $params['from']) |
81 | 81 | continue; |
82 | 82 | $messages[$message] = wfMsg( $message ); |
83 | 83 | } |
Index: trunk/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -231,8 +231,8 @@ |
232 | 232 | ApiBase :: dieDebug(__METHOD__, 'param validation?'); |
233 | 233 | |
234 | 234 | $this->addOption('LIMIT', $limit +1); |
235 | | - if(!is_null($continue)) |
236 | | - $this->addOption('OFFSET', $continue); |
| 235 | + if(!is_null($params['continue'])) |
| 236 | + $this->addOption('OFFSET', $params['continue']); |
237 | 237 | |
238 | 238 | $data = array (); |
239 | 239 | $count = 0; |
— | — | @@ -256,7 +256,7 @@ |
257 | 257 | if($enumRevMode) |
258 | 258 | $this->setContinueEnumParameter('startid', intval($row->rev_id)); |
259 | 259 | else |
260 | | - $this->setContinueEnumParameter('continue', $continue + $count - 1); |
| 260 | + $this->setContinueEnumParameter('continue', $params['continue'] + $count - 1); |
261 | 261 | break; |
262 | 262 | } |
263 | 263 | } |