mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +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;
|
$config = null;
|
||||||
|
self::getBackendConfigs();
|
||||||
if (isset(self::$backendConfigs[$name])) {
|
if (isset(self::$backendConfigs[$name])) {
|
||||||
/** @var Zend_Config $config */
|
/** @var Zend_Config $config */
|
||||||
$config = self::$backendConfigs[$name];
|
$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)) {
|
switch (strtolower($config->type)) {
|
||||||
case 'ido':
|
case 'ido':
|
||||||
if ($backend->getResource()->getDbType() !== 'oracle') {
|
if ($backend->getResource()->getDbType() !== 'oracle') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user