Add $wgLogAutocreatedAccounts to enable/disable account autocreation logging.
authorVictor Vasiliev <vasilievvv@users.mediawiki.org>
Sat, 10 Apr 2010 06:21:13 +0000 (06:21 +0000)
committerVictor Vasiliev <vasilievvv@users.mediawiki.org>
Sat, 10 Apr 2010 06:21:13 +0000 (06:21 +0000)
RELEASE-NOTES
includes/DefaultSettings.php
includes/User.php

index 6a92370..d964071 100644 (file)
@@ -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
index 9633540..669fa54 100644 (file)
@@ -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
index ffbce81..0e7ea34 100644 (file)
@@ -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 );