[-] BO & FO & MO : #PSCFI-4237 : adding id_lang in method l() of class Mail()

This commit is contained in:
lLefevre
2011-12-05 17:22:47 +00:00
parent 8167ef6f50
commit 1c32791fa0
16 changed files with 32 additions and 32 deletions
+1 -1
View File
@@ -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
View File
@@ -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')
);
+1 -1
View File
@@ -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);
}
}