mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
parent
9bab7c0323
commit
6e4bf73c36
@ -152,6 +152,9 @@ abstract class ApplicationBootstrap
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->configDir = realpath($configDir);
|
$this->configDir = realpath($configDir);
|
||||||
|
if (!$this->configDir) {
|
||||||
|
$this->configDir = '/etc/icingaweb';
|
||||||
|
}
|
||||||
|
|
||||||
$this->setupAutoloader();
|
$this->setupAutoloader();
|
||||||
$this->setupZendAutoloader();
|
$this->setupZendAutoloader();
|
||||||
|
@ -169,7 +169,7 @@ class Config extends Zend_Config
|
|||||||
throw new ProgrammingError('Windows support has not yet been implemented');
|
throw new ProgrammingError('Windows support has not yet been implemented');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strpos($path, DIRECTORY_SEPARATOR) === 0 || self::$configDir === false) {
|
if (strpos(pathinfo($path, PATHINFO_DIRNAME), DIRECTORY_SEPARATOR) === 0) {
|
||||||
return $path;
|
return $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user