[-] BO & FO & MO : #PSCFI-4237 : adding id_lang in method l() of class Mail()
This commit is contained in:
@@ -644,7 +644,7 @@ class CustomerCore extends ObjectModel
|
||||
Mail::Send(
|
||||
(int)$id_lang,
|
||||
'guest_to_customer',
|
||||
Mail::l('Your guest account has been transformed to customer account'),
|
||||
Mail::l('Your guest account has been transformed to customer account', (int)$id_lang),
|
||||
$vars,
|
||||
$this->email,
|
||||
$this->firstname.' '.$this->lastname
|
||||
|
||||
+1
-1
@@ -92,7 +92,7 @@ class LoggerCore extends ObjectModel
|
||||
Mail::Send(
|
||||
(int)Configuration::get('PS_LANG_DEFAULT'),
|
||||
'log_alert',
|
||||
Mail::l('Log: You have a new alert from your shop'),
|
||||
Mail::l('Log: You have a new alert from your shop', (int)Configuration::get('PS_LANG_DEFAULT')),
|
||||
array(),
|
||||
Configuration::get('PS_SHOP_EMAIL')
|
||||
);
|
||||
|
||||
@@ -317,7 +317,7 @@ abstract class PaymentModuleCore extends Module
|
||||
$params['{firstname}'] = $customer->firstname;
|
||||
$params['{lastname}'] = $customer->lastname;
|
||||
$params['{id_order}'] = $order->id;
|
||||
Mail::Send((int)$order->id_lang, 'voucher', Mail::l('New voucher regarding your order #').$order->id, $params, $customer->email, $customer->firstname.' '.$customer->lastname);
|
||||
Mail::Send((int)$order->id_lang, 'voucher', Mail::l('New voucher regarding your order #', (int)$order->id_lang).$order->id, $params, $customer->email, $customer->firstname.' '.$customer->lastname);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user