aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorNicofuma <github@nicofuma.fr>2014-04-26 12:47:24 +0200
committerTristan Darricau <github@nicofuma.fr>2014-05-04 15:43:08 +0200
commit1c336c355965fbe47717744e0d5fb04125d12247 (patch)
tree75d6e38ac671757c95f6287d3c3891469dd1a2dd /phpBB/posting.php
parentdccc9ceeb58754dee811838d616449f0251d251b (diff)
downloadforums-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.php4
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&amp;t=$topic_id&amp;p=$next_post_id") . "#p$next_post_id";
$message = $user->lang['POST_DELETED'];