From: Alexandre Emsenhuber Date: Sat, 23 Apr 2011 15:51:21 +0000 (+0000) Subject: Call $wgRequest->getLimitOffset() directly instead of wfCheckLimits() X-Git-Tag: 1.31.0-rc.0~30604 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=6be87d97678a16b2007a8ee23d14ed035c1946ea;p=lhc%2Fweb%2Fwiklou.git Call $wgRequest->getLimitOffset() directly instead of wfCheckLimits() --- 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();