From 6be87d97678a16b2007a8ee23d14ed035c1946ea Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 23 Apr 2011 15:51:21 +0000 Subject: [PATCH] Call $wgRequest->getLimitOffset() directly instead of wfCheckLimits() --- includes/QueryPage.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 17a641bcf0..e52669f008 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -437,15 +437,16 @@ abstract class QueryPage extends SpecialPage { * real, honest-to-gosh query page. */ function execute( $par ) { - global $wgUser, $wgOut, $wgLang; + global $wgUser, $wgOut, $wgLang, $wgRequest; if ( !$this->userCanExecute( $wgUser ) ) { $this->displayRestrictionError(); return; } - if ( $this->limit == 0 && $this->offset == 0 ) - list( $this->limit, $this->offset ) = wfCheckLimits(); + if ( $this->limit == 0 && $this->offset == 0 ) { + list( $this->limit, $this->offset ) = $wgRequest->getLimitOffset(); + } $dbr = wfGetDB( DB_SLAVE ); $this->setHeaders(); -- 2.20.1