mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +02:00
icingacli: Fix "Notice: Constant ICINGAWEB_BASEDIR already defined"
This commit is contained in:
parent
6089372c42
commit
a081db08a4
@ -101,7 +101,9 @@ abstract class ApplicationBootstrap
|
|||||||
*/
|
*/
|
||||||
protected function __construct($configDir = null)
|
protected function __construct($configDir = null)
|
||||||
{
|
{
|
||||||
|
if (! defined('ICINGAWEB_BASEDIR')) {
|
||||||
define('ICINGAWEB_BASEDIR', dirname($this->getBootstrapDirecory()));
|
define('ICINGAWEB_BASEDIR', dirname($this->getBootstrapDirecory()));
|
||||||
|
}
|
||||||
define('ICINGAWEB_VENDORS', ICINGAWEB_BASEDIR . '/library/vendor');
|
define('ICINGAWEB_VENDORS', ICINGAWEB_BASEDIR . '/library/vendor');
|
||||||
define('ICINGAWEB_APPDIR', ICINGAWEB_BASEDIR . '/application');
|
define('ICINGAWEB_APPDIR', ICINGAWEB_BASEDIR . '/application');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user