parent
9bab7c0323
commit
6e4bf73c36
|
@ -152,6 +152,9 @@ abstract class ApplicationBootstrap
|
|||
}
|
||||
}
|
||||
$this->configDir = realpath($configDir);
|
||||
if (!$this->configDir) {
|
||||
$this->configDir = '/etc/icingaweb';
|
||||
}
|
||||
|
||||
$this->setupAutoloader();
|
||||
$this->setupZendAutoloader();
|
||||
|
|
|
@ -169,7 +169,7 @@ class Config extends Zend_Config
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue