// 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
+4 -3
View File
@@ -28,8 +28,9 @@ global $smarty;
$smarty->debugging = false;
$smarty->debugging_ctrl = 'NONE';
/* Smarty should be in compile check mode in the BackOffice */
$smarty->force_compile = false;
// Let user choose to force compilation
$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;
function smartyTranslate($params, &$smarty)
@@ -80,4 +81,4 @@ function smartyTranslate($params, &$smarty)
}
return Translate::getAdminTranslation($params['s'], $class, $addslashes, $htmlentities, $sprintf);
}
}