mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Use getenv() instead of $_SERVER to get ICINGAWEB_CONFIGDIR
refs #10488
This commit is contained in:
parent
643ee7b108
commit
414a78d532
@ -138,9 +138,8 @@ abstract class ApplicationBootstrap
|
||||
$this->setupAutoloader();
|
||||
|
||||
if ($configDir === null) {
|
||||
if (array_key_exists('ICINGAWEB_CONFIGDIR', $_SERVER)) {
|
||||
$configDir = $_SERVER['ICINGAWEB_CONFIGDIR'];
|
||||
} else {
|
||||
$configDir = getenv('ICINGAWEB_CONFIGDIR');
|
||||
if ($configDir === false) {
|
||||
$configDir = Platform::isWindows()
|
||||
? $baseDir . '/config'
|
||||
: '/etc/icingaweb2';
|
||||
|
Loading…
x
Reference in New Issue
Block a user