From a081db08a40ee137fb53af081bbc256c1869e5d4 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 12 Nov 2014 14:43:58 +0100 Subject: [PATCH] icingacli: Fix "Notice: Constant ICINGAWEB_BASEDIR already defined" --- library/Icinga/Application/ApplicationBootstrap.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Application/ApplicationBootstrap.php b/library/Icinga/Application/ApplicationBootstrap.php index fc124b61d..90e420d7e 100644 --- a/library/Icinga/Application/ApplicationBootstrap.php +++ b/library/Icinga/Application/ApplicationBootstrap.php @@ -101,7 +101,9 @@ abstract class ApplicationBootstrap */ protected function __construct($configDir = null) { - define('ICINGAWEB_BASEDIR', dirname($this->getBootstrapDirecory())); + if (! defined('ICINGAWEB_BASEDIR')) { + define('ICINGAWEB_BASEDIR', dirname($this->getBootstrapDirecory())); + } define('ICINGAWEB_VENDORS', ICINGAWEB_BASEDIR . '/library/vendor'); define('ICINGAWEB_APPDIR', ICINGAWEB_BASEDIR . '/application');