summaryrefslogtreecommitdiff
path: root/program/steps/mail/attachments.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-09-15 13:43:13 +0200
committerAleksander Machniak <alec@alec.pl>2013-09-15 13:43:13 +0200
commit2efe332b495787dc5be77c3191ff319a62a56fca (patch)
treed26f8c1c0b464ce59e7b4c54fa918432f63eb458 /program/steps/mail/attachments.inc
parent1f22878608dcdcbffa6db82914d89cbd0d32b0e1 (diff)
Display full attachment name using title attribute when name is too long to display (#1489320)
Diffstat (limited to 'program/steps/mail/attachments.inc')
-rw-r--r--program/steps/mail/attachments.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/program/steps/mail/attachments.inc b/program/steps/mail/attachments.inc
index f83f6892e..85aa9542b 100644
--- a/program/steps/mail/attachments.inc
+++ b/program/steps/mail/attachments.inc
@@ -118,9 +118,12 @@ if (is_array($_FILES['_attachments']['tmp_name'])) {
'alt' => rcube_label('delete')
));
}
- else {
+ else if ($COMPOSE['textbuttons']) {
$button = Q(rcube_label('delete'));
}
+ else {
+ $button = '';
+ }
$content = html::a(array(
'href' => "#delete",