FIX missing loading of global conf
This commit is contained in:
parent
1e8547dd44
commit
8692038be2
@ -167,6 +167,9 @@ if (!GETPOST('action', 'aZ09') || preg_match('/upgrade/i', GETPOST('action', 'aZ
|
||||
}
|
||||
$conf->db->dolibarr_main_db_cryptkey = $dolibarr_main_db_cryptkey;
|
||||
|
||||
// Load global conf
|
||||
$conf->setValues($db);
|
||||
|
||||
|
||||
$listofentities = array(1);
|
||||
|
||||
@ -4616,7 +4619,7 @@ function migrate_user_photospath2()
|
||||
if ($entity > 1) {
|
||||
$dir = DOL_DATA_ROOT.'/'.$entity.'/users';
|
||||
} else {
|
||||
$dir = $conf->user->multidir_output[$entity]; // $conf->user->multidir_output[] for each entity is construct by the multicompany module
|
||||
$dir = DOL_DATA_ROOT.'/users';
|
||||
}
|
||||
|
||||
if ($dir) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user