diff --git a/config/smartyadmin.config.inc.php b/config/smartyadmin.config.inc.php index 7814211ab..485bed7d1 100644 --- a/config/smartyadmin.config.inc.php +++ b/config/smartyadmin.config.inc.php @@ -38,7 +38,6 @@ $smarty->force_compile = (Configuration::get('PS_SMARTY_FORCE_COMPILE') == _PS_S $smarty->compile_check = (Configuration::get('PS_SMARTY_FORCE_COMPILE') == _PS_SMARTY_CHECK_COMPILE_) ? true : false; $smarty->debugging = false; $smarty->debugging_ctrl = 'URL'; // 'NONE' on production -$smarty->deprecation_notices = false; // so many depreciated yet not migrated smarty calls if (Configuration::get('PS_HTML_THEME_COMPRESSION')) $smarty->registerFilter('output', 'smartyMinifyHTML'); @@ -69,7 +68,7 @@ function smartyTranslate($params, &$smarty) $addslashes = !isset($params['slashes']); $string = str_replace('\'', '\\\'', $params['s']); - $filename = ((!isset($smarty->compiler_object) OR !is_object($smarty->compiler_object->template)) ? $smarty->template_filepath : $smarty->compiler_object->template->getTemplateFilepath()); + $filename = ((!isset($smarty->compiler_object) OR !is_object($smarty->compiler_object->template)) ? $smarty->template_resource : $smarty->compiler_object->template->getTemplateFilepath()); $class = Tools::substr(basename($filename), 0, -4);//.'_'.md5($string); if(in_array($class, array('header','footer','password','login')))