aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorZoddo <zoddo.ino@gmail.com>2015-08-30 16:49:25 +0200
committerZoddo <zoddo.ino@gmail.com>2015-08-30 22:43:07 +0200
commit51600b8f181b20d88c42ea2fb6893200e4e955e7 (patch)
treee4370c5f288bab168d1510a6475f9368d910f07c /phpBB/includes/functions_posting.php
parent306fbf23a8113e6d9d7160e02889bd10ea24b495 (diff)
downloadforums-51600b8f181b20d88c42ea2fb6893200e4e955e7.tar
forums-51600b8f181b20d88c42ea2fb6893200e4e955e7.tar.gz
forums-51600b8f181b20d88c42ea2fb6893200e4e955e7.tar.bz2
forums-51600b8f181b20d88c42ea2fb6893200e4e955e7.tar.xz
forums-51600b8f181b20d88c42ea2fb6893200e4e955e7.zip
[ticket/9485] Add post_id to relevant $phpbb_log->add()
PHPBB3-9485
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php2
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