Merge pull request #15010 from bafbes/abb120147

fix:allow const files loading from modules inside custom folders
This commit is contained in:
Laurent Destailleur 2020-10-14 17:39:08 +02:00 committed by GitHub
commit c079076488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,7 +235,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"; // This file can run code like setting $this->global->XXX vars.
dol_include_once($file."/".$file."_consts.php"); // This file can run code like setting $this->global->XXX vars.
}
}