summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-04-27 07:24:11 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-04-27 07:24:11 +0000
commit526541cc8b9c8d0e6ef60d50e15d1e785b8c6d53 (patch)
tree8e810011c290a2bbb7cafdbe1b36938e1530d404 /roundcubemail/program/steps
parenteada29b98c44f8afbd8929f78df167e0c5d09326 (diff)
- fix attachment mimetype setting after upload
- move style of delete button in attachment-list to mail.css file git-svn-id: https://svn.roundcube.net/trunk@2431 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/mail/attachments.inc6
-rw-r--r--roundcubemail/program/steps/mail/compose.inc4
2 files changed, 5 insertions, 5 deletions
diff --git a/roundcubemail/program/steps/mail/attachments.inc b/roundcubemail/program/steps/mail/attachments.inc
index 6d58edc8e..81ac2fe5c 100644
--- a/roundcubemail/program/steps/mail/attachments.inc
+++ b/roundcubemail/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 {
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc
index 9739a9772..9328cc5ac 100644
--- a/roundcubemail/program/steps/mail/compose.inc
+++ b/roundcubemail/program/steps/mail/compose.inc
@@ -715,8 +715,8 @@ function rcmail_compose_attachment_list($attrib)
if ($attrib['deleteicon'])
$button = html::img(array(
'src' => $CONFIG['skin_path'] . $attrib['deleteicon'],
- 'alt' => rcube_label('delete'),
- 'style' => "padding-right:2px;vertical-align:middle"));
+ 'alt' => rcube_label('delete')
+ ));
else
$button = Q(rcube_label('delete'));