Index: trunk/phase3/includes/api/ApiQueryDeletedrevs.php |
— | — | @@ -83,8 +83,8 @@ |
84 | 84 | // This also means stricter limits and stricter restrictions
|
85 | 85 | if(!$wgUser->isAllowed('undelete'))
|
86 | 86 | $this->dieUsage('You don\'t have permission to view deleted revision content', 'permissiondenied');
|
87 | | - $userMax = 50;
|
88 | | - $botMax = 200;
|
| 87 | + $userMax = ApiBase :: LIMIT_SML1;
|
| 88 | + $botMax = ApiBase :: LIMIT_SML2;
|
89 | 89 | $this->validateLimit('limit', $params['limit'], 1, $userMax, $botMax);
|
90 | 90 | }
|
91 | 91 | if($fld_token)
|
Index: trunk/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -119,8 +119,8 @@ |
120 | 120 | $this->expandTemplates = $expandtemplates; |
121 | 121 | } |
122 | 122 | |
123 | | - $userMax = ($this->fld_content ? 50 : 500); |
124 | | - $botMax = ($this->fld_content ? 200 : 10000); |
| 123 | + $userMax = ( $this->fld_content ? ApiBase::LIMIT_SML1 : ApiBase::LIMIT_BIG1 ); |
| 124 | + $botMax = ( $this->fld_content ? ApiBase::LIMIT_SML2 : ApiBase::LIMIT_BIG2 ); |
125 | 125 | |
126 | 126 | if ($enumRevMode) { |
127 | 127 | |