From 01ffe039089e08fd6faaf03f4170853defd41fc8 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Tue, 06 Oct 2009 02:55:08 -0400 Subject: [PATCH] Hold attachment info in a js list in order to simplify things + codestyle --- program/steps/mail/attachments.inc | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/program/steps/mail/attachments.inc b/program/steps/mail/attachments.inc index 28d6108..d97b9c4 100644 --- a/program/steps/mail/attachments.inc +++ b/program/steps/mail/attachments.inc @@ -111,7 +111,11 @@ $content .= Q($attachment['name']); - $OUTPUT->command('add2attachment_list', "rcmfile$id", $content, $uploadid); + $OUTPUT->command('add2attachment_list', "rcmfile$id", array( + 'html' => $content, + 'name' => $attachment['name'], + 'mimetype' => $attachment['mimetype'], + 'complete' => true), $uploadid); } else { // upload failed $err = $_FILES['_attachments']['error'][$i]; -- Gitblit v1.9.1