// Fix norme :)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12395 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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.');
|
||||||
|
|||||||
Reference in New Issue
Block a user