diff options
author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-09-09 11:04:13 +0200 |
---|---|---|
committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-09-09 11:04:13 +0200 |
commit | 542d75b3a918a5782a1682003fdc4e1f004afc47 (patch) | |
tree | 2284f3f68e39e7f5630fefc6d4879966b2e6e681 /phpBB/includes/functions_posting.php | |
parent | b83ce0a702583aec717a7be6363b950b63a45f45 (diff) | |
parent | 1fbdf615f2aa9c9be4816a9d927d36f88b68f20d (diff) | |
download | forums-542d75b3a918a5782a1682003fdc4e1f004afc47.tar forums-542d75b3a918a5782a1682003fdc4e1f004afc47.tar.gz forums-542d75b3a918a5782a1682003fdc4e1f004afc47.tar.bz2 forums-542d75b3a918a5782a1682003fdc4e1f004afc47.tar.xz forums-542d75b3a918a5782a1682003fdc4e1f004afc47.zip |
Merge pull request #3870 from Zoddo/ticket/9485
[ticket/9485] Add a "View post" link in the moderation logs
* Zoddo/ticket/9485:
[ticket/9485] Fix tests
[ticket/9485] Add post_id to relevant $phpbb_log->add()
[ticket/9485] Add a "View post" link in the moderation logs
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index e4520d7f03..0f42f1950a 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -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 |