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…
Reference in New Issue