From 3c2e543731e394205a6621c1bb2a579358f479ed Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 2 Jun 2010 18:42:24 +0000 Subject: [PATCH] Try to comment deprecated code. --- htdocs/main.inc.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 90bf135bf0a..c29a137acc1 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -242,12 +242,13 @@ if (! empty($_SESSION["disablemodules"])) } // Init Smarty +/* if (sizeof($conf->need_smarty) > 0 || $conf->global->MAIN_SMARTY) { // Usage of const in conf.php file (deprecated) can overwrite default dir. - if (empty($dolibarr_smarty_libs_dir)) $dolibarr_smarty_libs_dir=DOL_DOCUMENT_ROOT.'/includes/smarty/libs/'; - if (empty($dolibarr_smarty_compile)) $dolibarr_smarty_compile=DOL_DATA_ROOT.'/smarty/templates/temp'; - if (empty($dolibarr_smarty_cache)) $dolibarr_smarty_cache=DOL_DATA_ROOT.'/smarty/cache/temp'; + $dolibarr_smarty_libs_dir=DOL_DOCUMENT_ROOT.'/includes/smarty/libs/'; + $dolibarr_smarty_compile=DOL_DATA_ROOT.'/smarty/templates/temp'; + $dolibarr_smarty_cache=DOL_DATA_ROOT.'/smarty/cache/temp'; // Create directory if not exist if (! is_dir($dolibarr_smarty_compile)) create_exdir($dolibarr_smarty_compile); @@ -265,6 +266,7 @@ if (sizeof($conf->need_smarty) > 0 || $conf->global->MAIN_SMARTY) dol_print_error('',"Library Smarty ".$smarty_libs." not found."); } } +*/ /* * Phase authentication / login