// Fix norme :)

This commit is contained in:
vSchoener
2012-01-12 14:57:40 +00:00
parent 02d5c6030c
commit 5213e1ac88
+3 -3
View File
@@ -117,16 +117,16 @@ class ContactControllerCore extends FrontController
} }
if (!empty($contact->email)) if (!empty($contact->email))
{ {
$mailVarList = array( $mail_var_list = array(
'{email}' => $from, '{email}' => $from,
'{message}' => stripslashes($message), '{message}' => stripslashes($message),
'{id_order}' => (int)Tools::getValue('id_order'), '{id_order}' => (int)Tools::getValue('id_order'),
'{attached_file}' => $_FILES['fileUpload']['name'] ? $_FILES['fileUpload']['name'] : ''); '{attached_file}' => $_FILES['fileUpload']['name'] ? $_FILES['fileUpload']['name'] : '');
if (Mail::Send($this->context->language->id, 'contact', Mail::l('Message from contact form'), if (Mail::Send($this->context->language->id, 'contact', Mail::l('Message from contact form'),
$mailVarList, $contact->email, $contact->name, $from, ($customer->id ? $customer->firstname.' '.$customer->lastname : ''), $mail_var_list, $contact->email, $contact->name, $from, ($customer->id ? $customer->firstname.' '.$customer->lastname : ''),
$fileAttachment) && $fileAttachment) &&
Mail::Send($this->context->language->id, 'contact_form', Mail::l('Your message has been correctly sent'), $mailVarList, $from)) Mail::Send($this->context->language->id, 'contact_form', Mail::l('Your message has been correctly sent'), $mail_var_list, $from))
$this->context->smarty->assign('confirmation', 1); $this->context->smarty->assign('confirmation', 1);
else else
$this->errors[] = Tools::displayError('An error occurred while sending message.'); $this->errors[] = Tools::displayError('An error occurred while sending message.');