// This also means stricter limits and stricter restrictions\r
if(!$wgUser->isAllowed('undelete'))\r
$this->dieUsage('You don\'t have permission to view deleted revision content', 'permissiondenied');\r
- $userMax = 50;\r
- $botMax = 200;\r
+ $userMax = ApiBase :: LIMIT_SML1;\r
+ $botMax = ApiBase :: LIMIT_SML2;\r
$this->validateLimit('limit', $params['limit'], 1, $userMax, $botMax);\r
}\r
if($fld_token)\r
$this->expandTemplates = $expandtemplates;
}
- $userMax = ($this->fld_content ? 50 : 500);
- $botMax = ($this->fld_content ? 200 : 10000);
+ $userMax = ( $this->fld_content ? ApiBase::LIMIT_SML1 : ApiBase::LIMIT_BIG1 );
+ $botMax = ( $this->fld_content ? ApiBase::LIMIT_SML2 : ApiBase::LIMIT_BIG2 );
if ($enumRevMode) {