Index: trunk/phase3/includes/QueryPage.php |
— | — | @@ -437,15 +437,16 @@ |
438 | 438 | * real, honest-to-gosh query page. |
439 | 439 | */ |
440 | 440 | function execute( $par ) { |
441 | | - global $wgUser, $wgOut, $wgLang; |
| 441 | + global $wgUser, $wgOut, $wgLang, $wgRequest; |
442 | 442 | |
443 | 443 | if ( !$this->userCanExecute( $wgUser ) ) { |
444 | 444 | $this->displayRestrictionError(); |
445 | 445 | return; |
446 | 446 | } |
447 | 447 | |
448 | | - if ( $this->limit == 0 && $this->offset == 0 ) |
449 | | - list( $this->limit, $this->offset ) = wfCheckLimits(); |
| 448 | + if ( $this->limit == 0 && $this->offset == 0 ) { |
| 449 | + list( $this->limit, $this->offset ) = $wgRequest->getLimitOffset(); |
| 450 | + } |
450 | 451 | $dbr = wfGetDB( DB_SLAVE ); |
451 | 452 | |
452 | 453 | $this->setHeaders(); |