mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
Define the ICINGAWEB_VENDORS contant
This commit is contained in:
parent
921f324d3e
commit
11e13582e2
@ -103,15 +103,17 @@ abstract class ApplicationBootstrap
|
|||||||
{
|
{
|
||||||
$this->libDir = realpath(__DIR__ . '/../..');
|
$this->libDir = realpath(__DIR__ . '/../..');
|
||||||
|
|
||||||
|
if (! defined('ICINGAWEB_BASEDIR')) {
|
||||||
|
throw new LogicException('\'ICINGAWEB_BASEDIR\' is not defined');
|
||||||
|
}
|
||||||
|
define('ICINGAWEB_VENDORS', ICINGAWEB_BASEDIR . '/library/vendor');
|
||||||
|
|
||||||
if (defined('ICINGAWEB_APPDIR')) {
|
if (defined('ICINGAWEB_APPDIR')) {
|
||||||
$this->appDir = ICINGAWEB_APPDIR;
|
$this->appDir = ICINGAWEB_APPDIR;
|
||||||
} else {
|
} else {
|
||||||
if (array_key_exists('ICINGAWEB_APPDIR', $_SERVER)) {
|
if (array_key_exists('ICINGAWEB_APPDIR', $_SERVER)) {
|
||||||
$this->appDIr = $_SERVER['ICINGAWEB_APPDIR'];
|
$this->appDir = $_SERVER['ICINGAWEB_APPDIR'];
|
||||||
} else {
|
} else {
|
||||||
if (! defined('ICINGAWEB_BASEDIR')) {
|
|
||||||
throw new LogicException('\'ICINGAWEB_BASEDIR\' is not defined');
|
|
||||||
}
|
|
||||||
$this->appDir = ICINGAWEB_BASEDIR . '/application';
|
$this->appDir = ICINGAWEB_BASEDIR . '/application';
|
||||||
}
|
}
|
||||||
define('ICINGAWEB_APPDIR', $this->appDir);
|
define('ICINGAWEB_APPDIR', $this->appDir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user