diff options
author | Nicofuma <github@nicofuma.fr> | 2014-04-26 12:47:24 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-05-04 15:43:08 +0200 |
commit | 1c336c355965fbe47717744e0d5fb04125d12247 (patch) | |
tree | 75d6e38ac671757c95f6287d3c3891469dd1a2dd /phpBB/includes/mcp/mcp_main.php | |
parent | dccc9ceeb58754dee811838d616449f0251d251b (diff) | |
download | forums-1c336c355965fbe47717744e0d5fb04125d12247.tar forums-1c336c355965fbe47717744e0d5fb04125d12247.tar.gz forums-1c336c355965fbe47717744e0d5fb04125d12247.tar.bz2 forums-1c336c355965fbe47717744e0d5fb04125d12247.tar.xz forums-1c336c355965fbe47717744e0d5fb04125d12247.zip |
[ticket/11942] Adding the reason to hard deleted topic/post
PHPBB3-11942
Diffstat (limited to 'phpBB/includes/mcp/mcp_main.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_main.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/mcp/mcp_main.php b/phpBB/includes/mcp/mcp_main.php index 0343c2f631..075e49453f 100644 --- a/phpBB/includes/mcp/mcp_main.php +++ b/phpBB/includes/mcp/mcp_main.php @@ -789,7 +789,7 @@ function mcp_delete_topic($topic_ids, $is_soft = false, $soft_delete_reason = '' } else { - add_log('mod', $row['forum_id'], $topic_id, 'LOG_DELETE_TOPIC', $row['topic_title'], $row['topic_first_poster_name']); + add_log('mod', $row['forum_id'], $topic_id, 'LOG_DELETE_TOPIC', $row['topic_title'], $row['topic_first_poster_name'], $soft_delete_reason); } } } @@ -987,7 +987,7 @@ function mcp_delete_post($post_ids, $is_soft = false, $soft_delete_reason = '', foreach ($post_data as $id => $row) { $post_username = ($row['poster_id'] == ANONYMOUS && !empty($row['post_username'])) ? $row['post_username'] : $row['username']; - add_log('mod', $row['forum_id'], $row['topic_id'], 'LOG_DELETE_POST', $row['post_subject'], $post_username); + add_log('mod', $row['forum_id'], $row['topic_id'], 'LOG_DELETE_POST', $row['post_subject'], $post_username, $soft_delete_reason); } // Now delete the posts, topics and forums are automatically resync'ed |