// take force_compile setting into account in Back-Office

This commit is contained in:
djfm
2013-12-09 08:59:49 +00:00
parent aecbc18779
commit 40edeff122
+3 -2
View File
@@ -28,8 +28,9 @@ global $smarty;
$smarty->debugging = false; $smarty->debugging = false;
$smarty->debugging_ctrl = 'NONE'; $smarty->debugging_ctrl = 'NONE';
/* Smarty should be in compile check mode in the BackOffice */ // Let user choose to force compilation
$smarty->force_compile = false; $smarty->force_compile = (Configuration::get('PS_SMARTY_FORCE_COMPILE') == _PS_SMARTY_FORCE_COMPILE_) ? true : false;
// But force compile_check since the performance impact is small and it is better for debugging
$smarty->compile_check = true; $smarty->compile_check = true;
function smartyTranslate($params, &$smarty) function smartyTranslate($params, &$smarty)