From 34d9d5897e0865db6654e10a89c8e4282f0b9a88 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 30 Apr 2009 07:19:49 +0000 Subject: [PATCH] Tweaked account hiding & renaming limits --- includes/specials/SpecialBlockip.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialBlockip.php b/includes/specials/SpecialBlockip.php index 80b080566d..860848099a 100644 --- a/includes/specials/SpecialBlockip.php +++ b/includes/specials/SpecialBlockip.php @@ -42,6 +42,8 @@ function wfSpecialBlockip( $par ) { */ class IPBlockForm { var $BlockAddress, $BlockExpiry, $BlockReason; + // The maximum number of edits a user can have and still be hidden + const HIDEUSER_CONTRIBLIMIT = 1000; public function __construct( $par ) { global $wgRequest, $wgUser, $wgBlockAllowsUTEdit; @@ -397,7 +399,7 @@ class IPBlockForm { } else if( $expiry !== 'infinity' ) { // Bad expiry. return array('ipb_expiry_temp'); - } else if( User::edits($userId) > 3000 ) { + } else if( User::edits($userId) > self::HIDEUSER_CONTRIBLIMIT ) { // Typically, the user should have a handful of edits. // Disallow hiding users with many edits for performance. return array('ipb_hide_invalid'); -- 2.20.1