1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[feature/soft-delete] Invert the logic on confirm box

Permanent delete is now the checkbox rather then softdelete.

PHPBB3-9567
This commit is contained in:
Joas Schilling
2012-11-01 22:23:35 +01:00
parent 8d05dad634
commit bed82bf2bd
6 changed files with 67 additions and 63 deletions

View File

@@ -1593,7 +1593,9 @@ function handle_post_delete($forum_id, $topic_id, $post_id, &$post_data, $is_sof
'S_DELETE_REASON' => $auth->acl_get('m_softdelete', $forum_id),
));
confirm_box(false, 'DELETE_POST', $s_hidden_fields, 'posting_delete_post_body.html');
$l_confirm = 'DELETE_POST' . (($post_data['post_visibility'] == ITEM_DELETED) ? '_PERMANENTLY' : '');
confirm_box(false, $l_confirm, $s_hidden_fields, 'confirm_delete_body.html');
}
}