mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 00:37:42 +02:00
[ticket/10714] Refactor disable mechanism to only disable certain types
Only disable admin log when adding multiple users, so critical errors are still logged. PHPBB3-10714
This commit is contained in:
@@ -302,7 +302,7 @@ function user_add($user_row, $cp_data = false)
|
||||
global $phpbb_log;
|
||||
|
||||
// Because these actions only fill the log unneccessarily we skip the add_log() entry.
|
||||
$phpbb_log->disable();
|
||||
$phpbb_log->disable('admin');
|
||||
|
||||
// Add user to "newly registered users" group and set to default group if admin specified so.
|
||||
if ($config['new_member_group_default'])
|
||||
@@ -315,7 +315,7 @@ function user_add($user_row, $cp_data = false)
|
||||
group_user_add($add_group_id, $user_id);
|
||||
}
|
||||
|
||||
$phpbb_log->enable();
|
||||
$phpbb_log->enable('admin');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user