1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +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:
Joas Schilling
2012-03-28 15:48:45 +02:00
parent 2c7f498c1b
commit 3170845a50
3 changed files with 37 additions and 11 deletions

View File

@@ -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');
}
}