Revision: 50070 Author: aaron Date: 2009-04-30 07:19:49 +0000 (Thu, 30 Apr 2009)
Log Message: ----------- Tweaked account hiding & renaming limits Modified Paths: -------------- trunk/extensions/Renameuser/SpecialRenameuser.php trunk/phase3/includes/specials/SpecialBlockip.php Modified: trunk/extensions/Renameuser/SpecialRenameuser.php =================================================================== --- trunk/extensions/Renameuser/SpecialRenameuser.php 2009-04-30 06:00:01 UTC (rev 50069) +++ trunk/extensions/Renameuser/SpecialRenameuser.php 2009-04-30 07:19:49 UTC (rev 50070) @@ -32,8 +32,8 @@ * The maximum number of edits a user can have and still be allowed renaming, * set it to 0 to disable the limit. */ -define( 'RENAMEUSER_CONTRIBLIMIT', 2000000 ); -define( 'RENAMEUSER_CONTRIBJOB', 10000 ); +define( 'RENAMEUSER_CONTRIBLIMIT', 1000000 ); +define( 'RENAMEUSER_CONTRIBJOB', 5000 ); # Add a new log type global $wgLogTypes, $wgLogNames, $wgLogHeaders, $wgLogActions; Modified: trunk/phase3/includes/specials/SpecialBlockip.php =================================================================== --- trunk/phase3/includes/specials/SpecialBlockip.php 2009-04-30 06:00:01 UTC (rev 50069) +++ trunk/phase3/includes/specials/SpecialBlockip.php 2009-04-30 07:19:49 UTC (rev 50070) @@ -42,6 +42,8 @@ */ 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 @@ } 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'); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs