From ffc18ae10024e04c621b4db8180bbf74cdc3f4f8 Mon Sep 17 00:00:00 2001 From: goldsky Date: Tue, 12 Aug 2014 19:28:42 +0700 Subject: [PATCH] fix addAttachment() typo --- core/components/formit/model/formit/fihooks.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/components/formit/model/formit/fihooks.class.php b/core/components/formit/model/formit/fihooks.class.php index b9a80342..23b4660d 100644 --- a/core/components/formit/model/formit/fihooks.class.php +++ b/core/components/formit/model/formit/fihooks.class.php @@ -442,7 +442,7 @@ public function email(array $fields = array()) { if (empty($v['name'])) { $v['name'] = 'attachment'.$attachmentIndex; } - $this->modx->mail->mailer->AddAttachment($v['tmp_name'],$v['name'],'base64',!empty($v['type']) ? $v['type'] : 'application/octet-stream'); + $this->modx->mail->mailer->addAttachment($v['tmp_name'],$v['name'],'base64',!empty($v['type']) ? $v['type'] : 'application/octet-stream'); $attachmentIndex++; } }