[-] BO & FO & MO : #PSCFI-4237 : adding id_lang in method l() of class Mail()
This commit is contained in:
@@ -64,7 +64,7 @@ if ($context->customer->isLogged())
|
||||
srand($s * $us);
|
||||
$wishlist->token = strtoupper(substr(sha1(uniqid(rand(), true)._COOKIE_KEY_.$context->customer->id), 0, 16));
|
||||
$wishlist->add();
|
||||
Mail::Send($context->language->id, 'wishlink', Mail::l('Your wishlist\'s link'),
|
||||
Mail::Send($context->language->id, 'wishlink', Mail::l('Your wishlist\'s link', $context->language->id),
|
||||
array(
|
||||
'{wishlist}' => $wishlist->name,
|
||||
'{message}' => Tools::getProtocol().htmlentities($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__.'modules/blockwishlist/view.php?token='.$wishlist->token),
|
||||
|
||||
@@ -52,7 +52,7 @@ if ($context->customer->isLogged())
|
||||
$toName = strval(Configuration::get('PS_SHOP_NAME'));
|
||||
$customer = $context->customer;
|
||||
if (Validate::isLoadedObject($customer))
|
||||
Mail::Send($context->language->id, 'wishlist', Mail::l('Message from ').$customer->lastname.' '.$customer->firstname,
|
||||
Mail::Send($context->language->id, 'wishlist', Mail::l('Message from ', $context->language->id).$customer->lastname.' '.$customer->firstname,
|
||||
array(
|
||||
'{lastname}' => $customer->lastname,
|
||||
'{firstname}' => $customer->firstname,
|
||||
|
||||
Reference in New Issue
Block a user