// Fix smarty BackOffice
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9473 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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')))
|
||||
|
||||
Reference in New Issue
Block a user