Add $wgLogAutocreatedAccounts to enable/disable account autocreation logging.
This commit is contained in:
parent
6c267f1434
commit
ef9bf1cd5d
3 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue