aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_attachments.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-08-19 10:56:46 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-08-19 10:56:46 +0000
commit4b9215bd14bc72edeff20a40962d0bd89b21718e (patch)
tree554c9a7a023392148772c75fd887d7fecf6ba2c8 /phpBB/includes/ucp/ucp_attachments.php
parent9d825c0e200de129c84df55fe8d77ad2964bd2c1 (diff)
downloadforums-4b9215bd14bc72edeff20a40962d0bd89b21718e.tar
forums-4b9215bd14bc72edeff20a40962d0bd89b21718e.tar.gz
forums-4b9215bd14bc72edeff20a40962d0bd89b21718e.tar.bz2
forums-4b9215bd14bc72edeff20a40962d0bd89b21718e.tar.xz
forums-4b9215bd14bc72edeff20a40962d0bd89b21718e.zip
ucp -> groups -> memberships
git-svn-id: file:///svn/phpbb/trunk@5202 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_attachments.php')
-rw-r--r--phpBB/includes/ucp/ucp_attachments.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/includes/ucp/ucp_attachments.php b/phpBB/includes/ucp/ucp_attachments.php
index 2e479b0654..9e8cd2d2e8 100644
--- a/phpBB/includes/ucp/ucp_attachments.php
+++ b/phpBB/includes/ucp/ucp_attachments.php
@@ -26,10 +26,11 @@ class ucp_attachments extends module
if ($delete && sizeof($delete_ids))
{
- $s_hidden_fields = '<input type="hidden" name="delete" value="1" />';
+ $s_hidden_fields = array('delete' => 1);
+
foreach ($delete_ids as $attachment_id)
{
- $s_hidden_fields .= '<input type="hidden" name="attachment[' . $attachment_id . ']" value="1" />';
+ $s_hidden_fields['attachment'][$attachment_id] = 1;
}
if (confirm_box(true))
@@ -44,7 +45,7 @@ class ucp_attachments extends module
}
else
{
- confirm_box(false, (sizeof($delete_ids) == 1) ? 'DELETE_ATTACHMENT' : 'DELETE_ATTACHMENTS', $s_hidden_fields);
+ confirm_box(false, (sizeof($delete_ids) == 1) ? 'DELETE_ATTACHMENT' : 'DELETE_ATTACHMENTS', build_hidden_fields($s_hidden_fields));
}
}