[-] BO & FO & MO : #PSCFI-4237 : adding id_lang in method l() of class Mail()
This commit is contained in:
@@ -179,7 +179,7 @@ function submitAccount()
|
||||
$errors[] = Tools::displayError('an error occurred while creating your address');
|
||||
else
|
||||
{
|
||||
if (Mail::Send($context->language->id, 'account', Mail::l('Welcome!'),
|
||||
if (Mail::Send($context->language->id, 'account', Mail::l('Welcome!', $context->language->id),
|
||||
array('{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname, '{email}' => $customer->email, '{passwd}' => Tools::getValue('passwd')), $customer->email, $customer->firstname.' '.$customer->lastname))
|
||||
$context->smarty->assign('confirmation', 1);
|
||||
$context->cookie->id_customer = (int)($customer->id);
|
||||
|
||||
@@ -648,7 +648,7 @@ class PayPal extends PaymentModule
|
||||
$this->context->smarty->assign('logs', $log);
|
||||
$data = array('{logs}' => implode('<br />', $log));
|
||||
if ($send)
|
||||
Mail::Send($this->context->language->id, 'error_reporting', Mail::l('Error reporting from your PayPal module'), $data, Configuration::get('PS_SHOP_EMAIL'), NULL, NULL, NULL, NULL, NULL, _PS_MODULE_DIR_.$this->name.'/mails/');
|
||||
Mail::Send($this->context->language->id, 'error_reporting', Mail::l('Error reporting from your PayPal module', $this->context->language->id), $data, Configuration::get('PS_SHOP_EMAIL'), NULL, NULL, NULL, NULL, NULL, _PS_MODULE_DIR_.$this->name.'/mails/');
|
||||
echo $this->display(__FILE__, 'error.tpl');
|
||||
include_once(dirname(__FILE__).'/../../footer.php');
|
||||
die;
|
||||
|
||||
Reference in New Issue
Block a user