Try to comment deprecated code.
This commit is contained in:
parent
491e58a4e7
commit
3c2e543731
@ -242,12 +242,13 @@ if (! empty($_SESSION["disablemodules"]))
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Init Smarty
|
// Init Smarty
|
||||||
|
/*
|
||||||
if (sizeof($conf->need_smarty) > 0 || $conf->global->MAIN_SMARTY)
|
if (sizeof($conf->need_smarty) > 0 || $conf->global->MAIN_SMARTY)
|
||||||
{
|
{
|
||||||
// Usage of const in conf.php file (deprecated) can overwrite default dir.
|
// 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/';
|
$dolibarr_smarty_libs_dir=DOL_DOCUMENT_ROOT.'/includes/smarty/libs/';
|
||||||
if (empty($dolibarr_smarty_compile)) $dolibarr_smarty_compile=DOL_DATA_ROOT.'/smarty/templates/temp';
|
$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_cache=DOL_DATA_ROOT.'/smarty/cache/temp';
|
||||||
|
|
||||||
// Create directory if not exist
|
// Create directory if not exist
|
||||||
if (! is_dir($dolibarr_smarty_compile)) create_exdir($dolibarr_smarty_compile);
|
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.");
|
dol_print_error('',"Library Smarty ".$smarty_libs." not found.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Phase authentication / login
|
* Phase authentication / login
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user