mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Make sure backend configs will not be missing at backend creation time
This commit is contained in:
parent
385488c5df
commit
9a8ae4c92a
@ -159,7 +159,7 @@ class Backend implements ConfigAwareFactory, DatasourceInterface
|
||||
}
|
||||
|
||||
$config = null;
|
||||
|
||||
self::getBackendConfigs();
|
||||
if (isset(self::$backendConfigs[$name])) {
|
||||
/** @var Zend_Config $config */
|
||||
$config = self::$backendConfigs[$name];
|
||||
@ -174,7 +174,10 @@ class Backend implements ConfigAwareFactory, DatasourceInterface
|
||||
);
|
||||
}
|
||||
|
||||
self::$backendInstances[$name] = $backend = new self($config, ResourceFactory::getResourceConfig($config->resource));
|
||||
self::$backendInstances[$name] = $backend = new self(
|
||||
$config,
|
||||
ResourceFactory::getResourceConfig($config->resource)
|
||||
);
|
||||
switch (strtolower($config->type)) {
|
||||
case 'ido':
|
||||
if ($backend->getResource()->getDbType() !== 'oracle') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user