mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/9485] Add post_id to relevant $phpbb_log->add()
PHPBB3-9485
This commit is contained in:
parent
306fbf23a8
commit
51600b8f18
6 changed files with 10 additions and 0 deletions
|
@ -1700,6 +1700,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
|||
$phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_POST_EDITED', false, array(
|
||||
'forum_id' => $data['forum_id'],
|
||||
'topic_id' => $data['topic_id'],
|
||||
'post_id' => $data['post_id'],
|
||||
$log_subject,
|
||||
(!empty($username)) ? $username : $user->lang['GUEST'],
|
||||
$data['post_edit_reason']
|
||||
|
@ -2666,6 +2667,7 @@ function phpbb_handle_post_delete($forum_id, $topic_id, $post_id, &$post_data, $
|
|||
$phpbb_log->add('mod', $user->data['user_id'], $user->ip, (($is_soft) ? 'LOG_SOFTDELETE_POST' : 'LOG_DELETE_POST'), false, array(
|
||||
'forum_id' => $forum_id,
|
||||
'topic_id' => $topic_id,
|
||||
'post_id' => $post_id,
|
||||
$post_data['post_subject'],
|
||||
$post_username,
|
||||
$delete_reason
|
||||
|
|
|
@ -322,6 +322,7 @@ function lock_unlock($action, $ids)
|
|||
$phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_' . strtoupper($action), false, array(
|
||||
'forum_id' => $row['forum_id'],
|
||||
'topic_id' => $row['topic_id'],
|
||||
'post_id' => isset($row['post_id']) ? $row['post_id'] : 0,
|
||||
$row['topic_title']
|
||||
));
|
||||
}
|
||||
|
@ -1022,6 +1023,7 @@ function mcp_delete_post($post_ids, $is_soft = false, $soft_delete_reason = '',
|
|||
$phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_SOFTDELETE_POST', false, array(
|
||||
'forum_id' => $row['forum_id'],
|
||||
'topic_id' => $row['topic_id'],
|
||||
'post_id' => $row['post_id'],
|
||||
$row['post_subject'],
|
||||
$post_username,
|
||||
$soft_delete_reason
|
||||
|
@ -1071,6 +1073,7 @@ function mcp_delete_post($post_ids, $is_soft = false, $soft_delete_reason = '',
|
|||
$phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_DELETE_POST', false, array(
|
||||
'forum_id' => $row['forum_id'],
|
||||
'topic_id' => $row['topic_id'],
|
||||
'post_id' => $row['post_id'],
|
||||
$row['post_subject'],
|
||||
$post_username,
|
||||
$soft_delete_reason
|
||||
|
|
|
@ -574,6 +574,7 @@ function change_poster(&$post_info, $userdata)
|
|||
$phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_MCP_CHANGE_POSTER', false, array(
|
||||
'forum_id' => $post_info['forum_id'],
|
||||
'topic_id' => $post_info['topic_id'],
|
||||
'post_id' => $post_info['post_id'],
|
||||
$post_info['topic_title'],
|
||||
$from_username,
|
||||
$to_username
|
||||
|
|
|
@ -678,6 +678,7 @@ class mcp_queue
|
|||
$approve_log[] = array(
|
||||
'forum_id' => $post_data['forum_id'],
|
||||
'topic_id' => $post_data['topic_id'],
|
||||
'post_id' => $post_id,
|
||||
'post_subject' => $post_data['post_subject'],
|
||||
);
|
||||
}
|
||||
|
@ -694,6 +695,7 @@ class mcp_queue
|
|||
$phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_POST_' . strtoupper($action) . 'D', false, array(
|
||||
'forum_id' => $log_data['forum_id'],
|
||||
'topic_id' => $log_data['topic_id'],
|
||||
'post_id' => $log_data['post_id'],
|
||||
$log_data['post_subject']
|
||||
));
|
||||
}
|
||||
|
|
|
@ -716,6 +716,7 @@ function close_report($report_id_list, $mode, $action, $pm = false)
|
|||
$phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_REPORT_' . strtoupper($action) . 'D', false, array(
|
||||
'forum_id' => $post_info[$report['post_id']]['forum_id'],
|
||||
'topic_id' => $post_info[$report['post_id']]['topic_id'],
|
||||
'post_id' => $report['post_id'],
|
||||
$post_info[$report['post_id']]['post_subject']
|
||||
));
|
||||
$phpbb_notifications->delete_notifications('notification.type.report_post', $report['post_id']);
|
||||
|
|
|
@ -589,6 +589,7 @@ function add_warning($user_row, $warning, $send_pm = true, $post_id = 0)
|
|||
$phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_USER_WARNING', false, array(
|
||||
'forum_id' => $row['forum_id'],
|
||||
'topic_id' => $row['topic_id'],
|
||||
'post_id' => $post_id,
|
||||
$user_row['username']
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue