mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13468] Update calls to add_log()
PHPBB3-13468
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user