summaryrefslogtreecommitdiff
path: root/program/steps/mail/attachments.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-04-27 07:24:11 +0000
committeralecpl <alec@alec.pl>2009-04-27 07:24:11 +0000
commit1fb5874f276e9ce7731e8f166b19a371ce33b894 (patch)
treeb67adc45310189e4d7e13d8b82285b135ef62193 /program/steps/mail/attachments.inc
parentc5d8db9f818dd622c8cd6f915a1b1ba7af51d4c6 (diff)
- fix attachment mimetype setting after upload
- move style of delete button in attachment-list to mail.css file
Diffstat (limited to 'program/steps/mail/attachments.inc')
-rw-r--r--program/steps/mail/attachments.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/steps/mail/attachments.inc b/program/steps/mail/attachments.inc
index 6d58edc8e..81ac2fe5c 100644
--- a/program/steps/mail/attachments.inc
+++ b/program/steps/mail/attachments.inc
@@ -79,10 +79,11 @@ if (is_array($_FILES['_attachments']['tmp_name'])) {
$attachment = array(
'path' => $filepath,
'name' => $_FILES['_attachments']['name'][$i],
- 'mimetype' => rc_mime_content_type($tmpfname, $_FILES['_attachments']['type'][$i])
+ 'mimetype' => rc_mime_content_type($filepath, $_FILES['_attachments']['type'][$i])
);
$attachment = $RCMAIL->plugins->exec_hook('upload_attachment', $attachment);
+
if ($attachment['status']) {
$id = $attachment['id'];
@@ -93,8 +94,7 @@ if (is_array($_FILES['_attachments']['tmp_name'])) {
if (is_file($icon = $CONFIG['skin_path'] . '/images/icons/remove-attachment.png')) {
$button = html::img(array(
'src' => $icon,
- 'alt' => rcube_label('delete'),
- 'style' => "padding-right:2px;vertical-align:middle",
+ 'alt' => rcube_label('delete')
));
}
else {