From 41a4ccbc4ccbede9efdd1d6a92fa349b5731bb28 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Wed, 19 Oct 2011 15:34:18 +0000 Subject: [PATCH] // Fix smarty BackOffice git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9473 b9a71923-0436-4b27-9f14-aed3839534dd --- config/smartyadmin.config.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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')))