Update conf.class.php

I used  dol_sanitizeFileName only for $file in order to not clean the two '/' characters needed in the path
This commit is contained in:
Bahfir Abbes 2015-12-27 18:27:18 +01:00
parent 0027e1a8ba
commit ce49c0d5dc

View File

@ -209,6 +209,7 @@ class Conf
if(! empty($this->global->LOCAL_CONSTS_FILES)) {
$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) {
$conf->global->$key=constant($value);