From d064be158706468bc82c7cd85b3bdb14d7c9e76b Mon Sep 17 00:00:00 2001 From: prestamodule Date: Tue, 26 Nov 2013 11:22:57 +0100 Subject: [PATCH] - Fix multiple translations in a same process for different id_lang If id_lang are mixed (1, 2, 3, 1, 4, 2...) the translations aren't correctly populated from the theme lang.php override if include_once is used. include must be used in order to handle mixed id_lang in a same process. Signed-off-by: hadjedjvincent --- classes/Mail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Mail.php b/classes/Mail.php index 76ffadc40..3fc073fa8 100644 --- a/classes/Mail.php +++ b/classes/Mail.php @@ -372,11 +372,11 @@ class MailCore $file_core = _PS_ROOT_DIR_.'/mails/'.$iso_code.'/lang.php'; if (Tools::file_exists_cache($file_core) && empty($_LANGMAIL)) - include_once($file_core); + include($file_core); $file_theme = _PS_THEME_DIR_.'mails/'.$iso_code.'/lang.php'; if (Tools::file_exists_cache($file_theme)) - include_once($file_theme); + include($file_theme); if (!is_array($_LANGMAIL)) return (str_replace('"', '"', $string));