mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Remove constant ICINGAWEB_BASEDIR
We should avoid use of constants.
This commit is contained in:
parent
79bd743900
commit
9c103a9864
@ -117,11 +117,9 @@ abstract class ApplicationBootstrap
|
|||||||
$baseDir = dirname($this->getBootstrapDirectory());
|
$baseDir = dirname($this->getBootstrapDirectory());
|
||||||
}
|
}
|
||||||
$this->baseDir = $baseDir;
|
$this->baseDir = $baseDir;
|
||||||
if (! defined('ICINGAWEB_BASEDIR')) {
|
|
||||||
define('ICINGAWEB_BASEDIR', dirname($this->getBootstrapDirectory()));
|
define('ICINGAWEB_VENDORS', $baseDir . '/library/vendor');
|
||||||
}
|
define('ICINGAWEB_APPDIR', $baseDir . '/application');
|
||||||
define('ICINGAWEB_VENDORS', ICINGAWEB_BASEDIR . '/library/vendor');
|
|
||||||
define('ICINGAWEB_APPDIR', ICINGAWEB_BASEDIR . '/application');
|
|
||||||
|
|
||||||
$this->appDir = ICINGAWEB_APPDIR;
|
$this->appDir = ICINGAWEB_APPDIR;
|
||||||
$this->libDir = realpath(__DIR__ . '/../..');
|
$this->libDir = realpath(__DIR__ . '/../..');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user