mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Fix errors in setup/modelfactory.class.inc.php
This commit is contained in:
@@ -486,6 +486,7 @@ class MFDictModule extends MFModule
|
||||
// Directories to scan
|
||||
foreach(glob($sDir.'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $sSubDir)
|
||||
{
|
||||
/** @noinspection SlowArrayOperationsInLoopInspection */
|
||||
$aDictionaries = array_merge($aDictionaries, $this->GetDictionaryFiles($sSubDir));
|
||||
}
|
||||
}
|
||||
@@ -943,18 +944,15 @@ class ModelFactory
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
catch (Exception $e) {
|
||||
throw new Exception('Failed to load dictionary file "'.$sPHPFile.'", reason: '.$e->getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
catch (Exception $e) {
|
||||
$aLoadedModuleNames = array();
|
||||
foreach (self::$aLoadedModules as $oModule)
|
||||
{
|
||||
$aLoadedModuleNames[] = $oModule->GetName();
|
||||
foreach (self::$aLoadedModules as $oLoadedModule) {
|
||||
$aLoadedModuleNames[] = $oLoadedModule->GetName();
|
||||
}
|
||||
throw new Exception('Error loading module "'.$oModule->GetName().'": '.$e->getMessage().' - Loaded modules: '.implode(',',
|
||||
$aLoadedModuleNames));
|
||||
|
||||
@@ -126,6 +126,8 @@ class PHPParameters extends Parameters
|
||||
|
||||
class XMLParameters extends Parameters
|
||||
{
|
||||
/** @var array */
|
||||
public $aData;
|
||||
protected $sParametersFile;
|
||||
|
||||
public function __construct($sParametersFile)
|
||||
|
||||
Reference in New Issue
Block a user