N°6119 Fix fresh install crashing on profile creation

Regression brought by fc97491 / #453
This commit is contained in:
Pierre Goiffon
2023-03-22 11:19:29 +01:00
parent 1fc1746e6d
commit 43ecac7e6a

View File

@@ -94,10 +94,10 @@ class TicketsInstaller extends ModuleInstallerAPI
$sLang = str_replace(' ', '_', strtolower($oConfiguration->GetDefaultLanguage()));
}
$sFileName = __DIR__."/data/{$sLang}.data.itop-tickets.xml";
$sFileName = dirname(__FILE__)."/data/{$sLang}.data.itop-tickets.xml";
SetupLog::Info("Searching file: $sFileName");
if (!file_exists($sFileName)) {
$sFileName = __DIR__."/data/en_us.data.itop-tickets.xml";
$sFileName = dirname(__FILE__)."/data/en_us.data.itop-tickets.xml";
}
SetupLog::Info("Loading file: $sFileName");
$oDataLoader->StartSession($oMyChange);