summaryrefslogtreecommitdiff
path: root/program/steps/mail/compose.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-09-21 07:33:38 +0000
committeralecpl <alec@alec.pl>2008-09-21 07:33:38 +0000
commite2c610ebfa9155888ff60f4fb3d77bffbc1f2293 (patch)
tree20c162848a02e9d49f786e0a58cec8d17969d2df /program/steps/mail/compose.inc
parentf5d3769a807fb6728b8e035fc01b7311664df617 (diff)
- use more 'html' class
Diffstat (limited to 'program/steps/mail/compose.inc')
-rw-r--r--program/steps/mail/compose.inc9
1 files changed, 4 insertions, 5 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 9ff4190ab..830168c24 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -765,11 +765,10 @@ function rcmail_compose_attachment_form($attrib)
function rcmail_compose_attachment_field($attrib)
{
- // allow the following attributes to be added to the <input> tag
- $attrib_str = create_attrib_string($attrib, array('id', 'class', 'style', 'size'));
-
- $out = '<input type="file" name="_attachments[]"'. $attrib_str . " />";
- return $out;
+ $attrib['type'] = 'file';
+ $attrib['name'] = '_attachments[]';
+ $field = new html_inputfield($attrib);
+ return $field->show();
}