| @@ 299-309 (lines=11) @@ | ||
| 296 | $count = 0; |
|
| 297 | $newPageID = 0; |
|
| 298 | foreach ( $res as $row ) { |
|
| 299 | if ( ++$count > $limit ) { |
|
| 300 | // We've had enough |
|
| 301 | if ( $mode == 'all' || $mode == 'revs' ) { |
|
| 302 | $this->setContinueEnumParameter( 'continue', |
|
| 303 | "$row->ar_namespace|$row->ar_title|$row->ar_timestamp|$row->ar_id" |
|
| 304 | ); |
|
| 305 | } else { |
|
| 306 | $this->setContinueEnumParameter( 'continue', "$row->ar_timestamp|$row->ar_id" ); |
|
| 307 | } |
|
| 308 | break; |
|
| 309 | } |
|
| 310 | ||
| 311 | $rev = []; |
|
| 312 | $anyHidden = false; |
|
| @@ 417-426 (lines=10) @@ | ||
| 414 | [ 'query', $this->getModuleName(), $pageID, 'revisions' ], |
|
| 415 | null, $rev ); |
|
| 416 | } |
|
| 417 | if ( !$fit ) { |
|
| 418 | if ( $mode == 'all' || $mode == 'revs' ) { |
|
| 419 | $this->setContinueEnumParameter( 'continue', |
|
| 420 | "$row->ar_namespace|$row->ar_title|$row->ar_timestamp|$row->ar_id" |
|
| 421 | ); |
|
| 422 | } else { |
|
| 423 | $this->setContinueEnumParameter( 'continue', "$row->ar_timestamp|$row->ar_id" ); |
|
| 424 | } |
|
| 425 | break; |
|
| 426 | } |
|
| 427 | } |
|
| 428 | $result->addIndexedTagName( [ 'query', $this->getModuleName() ], 'page' ); |
|
| 429 | } |
|