mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°6043 - Booking: Add prerequisites in iTop core - CRUD extensibility (#520)
This commit is contained in:
@@ -189,14 +189,17 @@ class XMLDataLoader
|
||||
function LoadFile($sFilePath, $bUpdateKeyCacheOnly = false, bool $bSearch = false)
|
||||
{
|
||||
global $aKeys;
|
||||
|
||||
|
||||
$oXml = simplexml_load_file($sFilePath);
|
||||
|
||||
$aReplicas = array();
|
||||
foreach($oXml as $sClass => $oXmlObj)
|
||||
{
|
||||
if (!MetaModel::IsValidClass($sClass))
|
||||
{
|
||||
|
||||
if (!$oXml) {
|
||||
SetupLog::Error("Unable to load xml file - $sFilePath");
|
||||
throw(new Exception("Unable to load xml file - $sFilePath"));
|
||||
}
|
||||
|
||||
$aReplicas = array();
|
||||
foreach ($oXml as $sClass => $oXmlObj) {
|
||||
if (!MetaModel::IsValidClass($sClass)) {
|
||||
SetupLog::Error("Unknown class - $sClass");
|
||||
throw(new Exception("Unknown class - $sClass"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user