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/posting.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/posting.php')
-rw-r--r-- | phpBB/posting.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index cfd6524e62..46ccf40e5c 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1709,14 +1709,14 @@ function handle_post_delete($forum_id, $topic_id, $post_id, &$post_data, $is_sof if ($next_post_id === false) { - add_log('mod', $forum_id, $topic_id, (($is_soft) ? 'LOG_SOFTDELETE_TOPIC' : 'LOG_DELETE_TOPIC'), $post_data['topic_title'], $post_username); + add_log('mod', $forum_id, $topic_id, (($is_soft) ? 'LOG_SOFTDELETE_TOPIC' : 'LOG_DELETE_TOPIC'), $post_data['topic_title'], $post_username, $soft_delete_reason); $meta_info = append_sid("{$phpbb_root_path}viewforum.$phpEx", "f=$forum_id"); $message = $user->lang['POST_DELETED']; } else { - add_log('mod', $forum_id, $topic_id, (($is_soft) ? 'LOG_SOFTDELETE_POST' : 'LOG_DELETE_POST'), $post_data['post_subject'], $post_username); + add_log('mod', $forum_id, $topic_id, (($is_soft) ? 'LOG_SOFTDELETE_POST' : 'LOG_DELETE_POST'), $post_data['post_subject'], $post_username, $soft_delete_reason); $meta_info = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&p=$next_post_id") . "#p$next_post_id"; $message = $user->lang['POST_DELETED']; |