From 8055c12af95fd29f8d7c8fcdec9ebfe2cf1c8882 Mon Sep 17 00:00:00 2001 From: vSchoener Date: Thu, 12 Jan 2012 14:57:40 +0000 Subject: [PATCH] // Fix norme :) git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12395 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/front/ContactController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/front/ContactController.php b/controllers/front/ContactController.php index f429d861d..8b3c4fb0d 100644 --- a/controllers/front/ContactController.php +++ b/controllers/front/ContactController.php @@ -117,16 +117,16 @@ class ContactControllerCore extends FrontController } if (!empty($contact->email)) { - $mailVarList = array( + $mail_var_list = array( '{email}' => $from, '{message}' => stripslashes($message), '{id_order}' => (int)Tools::getValue('id_order'), '{attached_file}' => $_FILES['fileUpload']['name'] ? $_FILES['fileUpload']['name'] : ''); 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) && - 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); else $this->errors[] = Tools::displayError('An error occurred while sending message.');