[ticket/10714] Remove the dirty global hack to disable the log.

PHPBB3-10714
This commit is contained in:
Joas Schilling 2012-03-17 23:52:47 +01:00
parent 3fbac076ce
commit 34ce2561a0

View file

@ -299,8 +299,10 @@ function user_add($user_row, $cp_data = false)
if ($add_group_id) if ($add_group_id)
{ {
// Because these actions only fill the log unneccessarily we skip the add_log() entry with a little hack. :/ global $phpbb_log;
$GLOBALS['skip_add_log'] = true;
// Because these actions only fill the log unneccessarily we skip the add_log() entry.
$phpbb_log->disable();
// Add user to "newly registered users" group and set to default group if admin specified so. // Add user to "newly registered users" group and set to default group if admin specified so.
if ($config['new_member_group_default']) if ($config['new_member_group_default'])
@ -313,7 +315,7 @@ function user_add($user_row, $cp_data = false)
group_user_add($add_group_id, $user_id); group_user_add($add_group_id, $user_id);
} }
unset($GLOBALS['skip_add_log']); $phpbb_log->enable();
} }
} }