[-] BO : #PSTEST-1130 : fix bug object mail virtual product
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14457 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -271,11 +271,13 @@ class MailCore
|
||||
if ($id_lang == null)
|
||||
$id_lang = (!isset($context->language) || !is_object($context->language)) ? (int)Configuration::get('PS_LANG_DEFAULT') : (int)$context->language->id;
|
||||
|
||||
$file_core = _PS_ROOT_DIR_.'/mails/'.$context->language->iso_code.'/lang.php';
|
||||
$iso_code = Language::getIsoById((int)$id_lang);
|
||||
|
||||
$file_core = _PS_ROOT_DIR_.'/mails/'.$iso_code.'/lang.php';
|
||||
if (Tools::file_exists_cache($file_core) && empty($_LANGMAIL))
|
||||
include_once($file_core);
|
||||
|
||||
$file_theme = _PS_THEME_DIR_.'mails/'.$context->language->iso_code.'/lang.php';
|
||||
$file_theme = _PS_THEME_DIR_.'mails/'.$iso_code.'/lang.php';
|
||||
if (Tools::file_exists_cache($file_theme))
|
||||
include_once($file_theme);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user