[-] BO: improvement of load time
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13986 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -44,9 +44,9 @@ function smartyTranslate($params, &$smarty)
|
||||
else if ($params['pdf'])
|
||||
return Translate::getPdfTranslation($params['s']);
|
||||
|
||||
if (is_array($lang_array) && key_exists($key, $lang_array))
|
||||
if ($lang_array != null && isset($lang_array[$key]))
|
||||
$msg = $lang_array[$key];
|
||||
elseif (is_array($lang_array) && key_exists(Tools::strtolower($key), $lang_array))
|
||||
elseif ($lang_array != null && isset($lang_array[Tools::strtolower($key)]))
|
||||
$msg = $lang_array[Tools::strtolower($key)];
|
||||
else
|
||||
$msg = $params['s'];
|
||||
|
||||
Reference in New Issue
Block a user