aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2016-01-24 18:16:16 +0100
committerTristan Darricau <tristan.darricau@sensiolabs.com>2016-01-24 18:16:16 +0100
commit49e4c11bad18a7620355cdba2f88da4bd1acc1a5 (patch)
tree27a04e2d2cef69c1653a319378380dba46a1ee25 /phpBB/posting.php
parent36ff2c7b59ecd0efa999f0321cf43feebae0f33b (diff)
parent3566bb9e440f2004a425ff417e44a0f4eec16c21 (diff)
downloadforums-49e4c11bad18a7620355cdba2f88da4bd1acc1a5.tar
forums-49e4c11bad18a7620355cdba2f88da4bd1acc1a5.tar.gz
forums-49e4c11bad18a7620355cdba2f88da4bd1acc1a5.tar.bz2
forums-49e4c11bad18a7620355cdba2f88da4bd1acc1a5.tar.xz
forums-49e4c11bad18a7620355cdba2f88da4bd1acc1a5.zip
Merge branch '3.1.x'
* 3.1.x: [ticket/14411] Permanently delete post if delete_permanent is set
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 3174626f6b..6cfb877f75 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -482,7 +482,7 @@ if ($mode == 'delete' || $mode == 'soft_delete')
}
$delete_reason = $request->variable('delete_reason', '', true);
- phpbb_handle_post_delete($forum_id, $topic_id, $post_id, $post_data, ($mode == 'soft_delete'), $delete_reason);
+ phpbb_handle_post_delete($forum_id, $topic_id, $post_id, $post_data, ($mode == 'soft_delete' && !$request->is_set_post('delete_permanent')), $delete_reason);
return;
}