mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 23:08:46 +02:00
N°6119 Fix fresh install crashing on profile creation
Regression brought by fc97491 / #453
This commit is contained in:
@@ -94,10 +94,10 @@ class TicketsInstaller extends ModuleInstallerAPI
|
|||||||
$sLang = str_replace(' ', '_', strtolower($oConfiguration->GetDefaultLanguage()));
|
$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");
|
SetupLog::Info("Searching file: $sFileName");
|
||||||
if (!file_exists($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");
|
SetupLog::Info("Loading file: $sFileName");
|
||||||
$oDataLoader->StartSession($oMyChange);
|
$oDataLoader->StartSession($oMyChange);
|
||||||
|
|||||||
Reference in New Issue
Block a user