N°2478 Fix install not working anymore when having no env-*

This commit is contained in:
Pierre Goiffon
2019-09-12 09:29:24 +02:00
parent e9dee86b7c
commit 24a0cc2f64
3 changed files with 6 additions and 4 deletions

View File

@@ -727,7 +727,7 @@ class utils
if (file_exists($sCurrentEnvConfigPath))
{
$oCurrentEnvDiskConfig = new Config($sCurrentEnvConfigPath);
self::$oConfig = $oCurrentEnvDiskConfig;
self::SetConfig($oCurrentEnvDiskConfig);
return self::$oConfig;
}
@@ -735,7 +735,7 @@ class utils
if (file_exists($sProductionEnvConfigPath))
{
$oProductionEnvDiskConfig = new Config($sProductionEnvConfigPath);
self::$oConfig = $oProductionEnvDiskConfig;
self::SetConfig($oProductionEnvDiskConfig);
return self::$oConfig;
}

View File

@@ -6250,6 +6250,9 @@ abstract class MetaModel
{
self::$m_oConfig = $oConfiguration;
// N°2478 not necessary (MetaModel should always be called before using cache) but this is a precaution O:)
utils::SetConfig($oConfiguration);
// Set log ASAP
if (self::$m_oConfig->GetLogGlobal())
{

View File

@@ -57,8 +57,7 @@ class ApplicationInstaller
$aParamValues = $oParams->GetParamForConfigArray();
$oConfig = new Config();
$sTargetDir = $this->GetTargetDir();
$oConfig->UpdateFromParams($aParamValues, $sTargetDir);
$oConfig->UpdateFromParams($aParamValues, null);
utils::SetConfig($oConfig);
}