N°2684 Fix setup broke when upgrading with a config file from another directory

In the moduleschoice screens we were using a wrong approot_url !
This commit is contained in:
Pierre Goiffon
2020-02-11 09:41:48 +01:00
parent 55d8a2316a
commit 4dc383cba8

View File

@@ -1282,10 +1282,11 @@ class WizStepModulesChoice extends WizardStep
$sConfigPath = utils::GetConfigFilePath('production');
}
if ($sConfigPath !== null) // only called if the config file exists : we are updating a previous installation !
// only called if the config file exists : we are updating a previous installation !
// WARNING : we can't load this config directly, as it might be from another directory with a different approot_url (N°2684)
if ($sConfigPath !== null)
{
$oConfig = new Config($sConfigPath);
utils::SetConfig($oConfig);
$this->bChoicesFromDatabase = $this->oExtensionsMap->LoadChoicesFromDatabase($oConfig);
}
}