Index: trunk/phase3/includes/specials/SpecialBlockip.php |
— | — | @@ -42,6 +42,8 @@ |
43 | 43 | */ |
44 | 44 | class IPBlockForm { |
45 | 45 | var $BlockAddress, $BlockExpiry, $BlockReason; |
| 46 | + // The maximum number of edits a user can have and still be hidden |
| 47 | + const HIDEUSER_CONTRIBLIMIT = 1000; |
46 | 48 | |
47 | 49 | public function __construct( $par ) { |
48 | 50 | global $wgRequest, $wgUser, $wgBlockAllowsUTEdit; |
— | — | @@ -397,7 +399,7 @@ |
398 | 400 | } else if( $expiry !== 'infinity' ) { |
399 | 401 | // Bad expiry. |
400 | 402 | return array('ipb_expiry_temp'); |
401 | | - } else if( User::edits($userId) > 3000 ) { |
| 403 | + } else if( User::edits($userId) > self::HIDEUSER_CONTRIBLIMIT ) { |
402 | 404 | // Typically, the user should have a handful of edits. |
403 | 405 | // Disallow hiding users with many edits for performance. |
404 | 406 | return array('ipb_hide_invalid'); |
Index: trunk/extensions/Renameuser/SpecialRenameuser.php |
— | — | @@ -32,8 +32,8 @@ |
33 | 33 | * The maximum number of edits a user can have and still be allowed renaming, |
34 | 34 | * set it to 0 to disable the limit. |
35 | 35 | */ |
36 | | -define( 'RENAMEUSER_CONTRIBLIMIT', 2000000 ); |
37 | | -define( 'RENAMEUSER_CONTRIBJOB', 10000 ); |
| 36 | +define( 'RENAMEUSER_CONTRIBLIMIT', 1000000 ); |
| 37 | +define( 'RENAMEUSER_CONTRIBJOB', 5000 ); |
38 | 38 | |
39 | 39 | # Add a new log type |
40 | 40 | global $wgLogTypes, $wgLogNames, $wgLogHeaders, $wgLogActions; |