Fix #3192: properly check 'limit' parameter on Special:Contributions
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 23 Aug 2005 22:05:19 +0000 (22:05 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 23 Aug 2005 22:05:19 +0000 (22:05 +0000)
includes/SpecialContributions.php

index dede621..a0d8aee 100644 (file)
@@ -172,7 +172,7 @@ function wfSpecialContributions( $par = null ) {
        }
        $nt =& Title::makeTitle(NS_USER, $nt->getDBkey());
 
-       $limit = min($wgRequest->getInt('limit', 50), 500);
+       list( $limit, $offset) = wfCheckLimits();
        $offset = $wgRequest->getVal('offset');
        /* Offset must be an integral. */
        if (!strlen($offset) || !preg_match("/^[0-9]+$/", $offset))