From ef9bf1cd5dc774c1ec33b8f2365f170838699d4a Mon Sep 17 00:00:00 2001 From: Victor Vasiliev Date: Sat, 10 Apr 2010 06:21:13 +0000 Subject: [PATCH] Add $wgLogAutocreatedAccounts to enable/disable account autocreation logging. --- RELEASE-NOTES | 2 ++ includes/DefaultSettings.php | 5 +++++ includes/User.php | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 6a92370201..d96407181e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -21,6 +21,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN === 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 diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 963354064e..669fa544d5 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -3327,6 +3327,11 @@ $wgLogActionsHandlers = array(); */ $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 diff --git a/includes/User.php b/includes/User.php index ffbce8151a..0e7ea34b7a 100644 --- a/includes/User.php +++ b/includes/User.php @@ -3602,8 +3602,8 @@ class User { * 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 ); -- 2.20.1