aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-05-11 19:28:26 +0200
committerTristan Darricau <github@nicofuma.fr>2014-05-11 19:28:26 +0200
commit237619792dd2d7b6c9e057307139e6bb52283df3 (patch)
tree8014696de22485bd052a9c0cdc1140fad4fd1f54 /phpBB/posting.php
parentcc1a304da6c8946cfd3d46fc08548109a8e1c05b (diff)
downloadforums-237619792dd2d7b6c9e057307139e6bb52283df3.tar
forums-237619792dd2d7b6c9e057307139e6bb52283df3.tar.gz
forums-237619792dd2d7b6c9e057307139e6bb52283df3.tar.bz2
forums-237619792dd2d7b6c9e057307139e6bb52283df3.tar.xz
forums-237619792dd2d7b6c9e057307139e6bb52283df3.zip
[ticket/11942] Always display delete reason
PHPBB3-11942
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 46ccf40e5c..cc39f70b48 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1740,14 +1740,12 @@ function handle_post_delete($forum_id, $topic_id, $post_id, &$post_data, $is_sof
$can_delete = $auth->acl_get('m_delete', $forum_id) || ($post_data['poster_id'] == $user->data['user_id'] && $user->data['is_registered'] && $auth->acl_get('f_delete', $forum_id));
$can_softdelete = $auth->acl_get('m_softdelete', $forum_id) || ($post_data['poster_id'] == $user->data['user_id'] && $user->data['is_registered'] && $auth->acl_get('f_softdelete', $forum_id));
- $display_reason = $auth->acl_get('m_softdelete', $forum_id) || ($can_delete && $can_softdelete);
$template->assign_vars(array(
'S_SOFTDELETED' => $post_data['post_visibility'] == ITEM_DELETED,
'S_CHECKED_PERMANENT' => $request->is_set_post('delete_permanent') ? ' checked="checked"' : '',
'S_ALLOWED_DELETE' => $can_delete,
'S_ALLOWED_SOFTDELETE' => $can_softdelete,
- 'S_DELETE_REASON' => $display_reason,
));
$l_confirm = 'DELETE_POST';