// Fix : With Smarty 3 use methods rather than private members

This commit is contained in:
jBreux
2011-12-21 14:36:38 +00:00
parent 30979108a3
commit 5823e6514e
+3 -3
View File
@@ -31,9 +31,9 @@ require_once(_PS_SMARTY_DIR_.'Smarty.class.php');
global $smarty;
$smarty = new Smarty();
$smarty->compile_dir = _PS_CACHE_DIR_.'smarty/compile';
$smarty->cache_dir = _PS_CACHE_DIR_.'smarty/cache';
$smarty->config_dir = _PS_SMARTY_DIR_.'configs';
$smarty->setCompileDir(_PS_CACHE_DIR_.'smarty/compile');
$smarty->setCacheDir(_PS_CACHE_DIR_.'smarty/cache');
$smarty->setConfigDir(_PS_SMARTY_DIR_.'configs');
$smarty->caching = false;
$smarty->force_compile = (Configuration::get('PS_SMARTY_FORCE_COMPILE') == _PS_SMARTY_FORCE_COMPILE_) ? true : false;
$smarty->compile_check = (Configuration::get('PS_SMARTY_FORCE_COMPILE') == _PS_SMARTY_CHECK_COMPILE_) ? true : false;