aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-03-17 23:52:47 +0100
committerJoas Schilling <nickvergessen@gmx.de>2012-08-21 11:59:26 +0200
commit34ce2561a0242c9066702e5fa9c92d0a6c77c2d2 (patch)
treef7c8c54b8bff7928d012447f20fb5647e8910ab0 /phpBB/includes/functions_user.php
parent3fbac076ceb4773aa3c985d24eeaf306aa0b6a42 (diff)
downloadforums-34ce2561a0242c9066702e5fa9c92d0a6c77c2d2.tar
forums-34ce2561a0242c9066702e5fa9c92d0a6c77c2d2.tar.gz
forums-34ce2561a0242c9066702e5fa9c92d0a6c77c2d2.tar.bz2
forums-34ce2561a0242c9066702e5fa9c92d0a6c77c2d2.tar.xz
forums-34ce2561a0242c9066702e5fa9c92d0a6c77c2d2.zip
[ticket/10714] Remove the dirty global hack to disable the log.
PHPBB3-10714
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 9e33a5122e..4074eaa2f2 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -299,8 +299,10 @@ function user_add($user_row, $cp_data = false)
if ($add_group_id)
{
- // Because these actions only fill the log unneccessarily we skip the add_log() entry with a little hack. :/
- $GLOBALS['skip_add_log'] = true;
+ global $phpbb_log;
+
+ // 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.
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);
}
- unset($GLOBALS['skip_add_log']);
+ $phpbb_log->enable();
}
}