diff options
author | Tristan Darricau <github@nicofuma.fr> | 2015-01-28 09:27:16 +0100 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2015-01-28 09:27:16 +0100 |
commit | 0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb (patch) | |
tree | 527e1475e1e0fd0f011c56e3c2e56c769e08f8fa /phpBB/includes/acp/acp_permissions.php | |
parent | 828aa34ff99cecef3442e2d28dae5734f7db6e12 (diff) | |
parent | 7fc586080bf5e7b6e90dcf44526200d7c9356d57 (diff) | |
download | forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar.gz forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar.bz2 forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar.xz forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.zip |
Merge pull request #3263 from MGaetan89/ticket/13468
[ticket/13468] Change add_log() calls with $phpbb_log->add()
* MGaetan89/ticket/13468:
[ticket/13468] Update calls to `add_log()`
Diffstat (limited to 'phpBB/includes/acp/acp_permissions.php')
-rw-r--r-- | phpBB/includes/acp/acp_permissions.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/acp/acp_permissions.php b/phpBB/includes/acp/acp_permissions.php index 0010c6e4a4..802d4999e9 100644 --- a/phpBB/includes/acp/acp_permissions.php +++ b/phpBB/includes/acp/acp_permissions.php @@ -909,7 +909,7 @@ class acp_permissions */ function log_action($mode, $action, $permission_type, $ug_type, $ug_id, $forum_id) { - global $db, $user; + global $db, $user, $phpbb_log; if (!is_array($ug_id)) { @@ -937,7 +937,7 @@ class acp_permissions if ($forum_id[0] == 0) { - add_log('admin', 'LOG_ACL_' . strtoupper($action) . '_' . strtoupper($mode) . '_' . strtoupper($permission_type), $l_ug_list); + $phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_ACL_' . strtoupper($action) . '_' . strtoupper($mode) . '_' . strtoupper($permission_type), false, array($l_ug_list)); } else { @@ -954,7 +954,7 @@ class acp_permissions } $db->sql_freeresult($result); - add_log('admin', 'LOG_ACL_' . strtoupper($action) . '_' . strtoupper($mode) . '_' . strtoupper($permission_type), $l_forum_list, $l_ug_list); + $phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_ACL_' . strtoupper($action) . '_' . strtoupper($mode) . '_' . strtoupper($permission_type), false, array($l_forum_list, $l_ug_list)); } } |