http://www.mediawiki.org/wiki/Special:Code/MediaWiki/64853
Revision: 64853 Author: vasilievvv Date: 2010-04-10 06:21:13 +0000 (Sat, 10 Apr 2010) Log Message: ----------- Add $wgLogAutocreatedAccounts to enable/disable account autocreation logging. Modified Paths: -------------- trunk/phase3/RELEASE-NOTES trunk/phase3/includes/DefaultSettings.php trunk/phase3/includes/User.php Modified: trunk/phase3/RELEASE-NOTES =================================================================== --- trunk/phase3/RELEASE-NOTES 2010-04-10 06:11:02 UTC (rev 64852) +++ trunk/phase3/RELEASE-NOTES 2010-04-10 06:21:13 UTC (rev 64853) @@ -21,6 +21,8 @@ === Configuration changes in 1.17 === * DatabaseFunctions.php that was needed for compatibility with pre-1.3 extensions has been removed. +* $wgLogAutocreatedAccounts controls whether autocreation of accounts is logged + to new users log. === New features in 1.17 === * (bug 10183) Users can now add personal styles and scripts to all skins via Modified: trunk/phase3/includes/DefaultSettings.php =================================================================== --- trunk/phase3/includes/DefaultSettings.php 2010-04-10 06:11:02 UTC (rev 64852) +++ trunk/phase3/includes/DefaultSettings.php 2010-04-10 06:21:13 UTC (rev 64853) @@ -3328,6 +3328,11 @@ $wgNewUserLog = true; /** + * Log the automatic creations of new users accounts? + */ +$wgLogAutocreatedAccounts = false; + +/** * List of special pages, followed by what subtitle they should go under * at Special:SpecialPages */ Modified: trunk/phase3/includes/User.php =================================================================== --- trunk/phase3/includes/User.php 2010-04-10 06:11:02 UTC (rev 64852) +++ trunk/phase3/includes/User.php 2010-04-10 06:21:13 UTC (rev 64853) @@ -3602,8 +3602,8 @@ * Used by things like CentralAuth and perhaps other authplugins. */ public function addNewUserLogEntryAutoCreate() { - global $wgNewUserLog; - if( empty( $wgNewUserLog ) ) { + global $wgNewUserLog, $wgLogAutocreatedAccounts; + if( !$wgNewUserLog || !$wgLogAutocreatedAccounts ) { return true; // disabled } $log = new LogPage( 'newusers', false ); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs