diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2012-11-01 22:23:35 +0100 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2012-11-01 22:23:35 +0100 |
| commit | bed82bf2bd13ca04cc1572d454eee5ef3a9053a6 (patch) | |
| tree | 1c280b81838bb1e1b4d16c94d55fa7f769507501 /phpBB/posting.php | |
| parent | 8d05dad63471ffbc58feecd1f44cfa5703f0d5f1 (diff) | |
| download | forums-bed82bf2bd13ca04cc1572d454eee5ef3a9053a6.tar forums-bed82bf2bd13ca04cc1572d454eee5ef3a9053a6.tar.gz forums-bed82bf2bd13ca04cc1572d454eee5ef3a9053a6.tar.bz2 forums-bed82bf2bd13ca04cc1572d454eee5ef3a9053a6.tar.xz forums-bed82bf2bd13ca04cc1572d454eee5ef3a9053a6.zip | |
[feature/soft-delete] Invert the logic on confirm box
Permanent delete is now the checkbox rather then softdelete.
PHPBB3-9567
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index e0ab56f7b7..b0157376cf 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -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'); } } |
