Fix remove warnings

This commit is contained in:
Laurent Destailleur 2019-10-16 19:08:31 +02:00
parent 8152c60878
commit 8a7a0b80e2

View File

@ -226,10 +226,7 @@ class Conf
$filesList = explode(":", $this->global->LOCAL_CONSTS_FILES);
foreach ($filesList as $file) {
$file=dol_sanitizeFileName($file);
include_once DOL_DOCUMENT_ROOT . "/".$file."/".$file."_consts.php";
foreach ($file2bddconsts as $key=>$value) {
$this->global->$key=$value;
}
include_once DOL_DOCUMENT_ROOT . "/".$file."/".$file."_consts.php"; // This file can run code like setting $this->global->XXX vars.
}
}