icingacli: Fix "Notice: Constant ICINGAWEB_BASEDIR already defined"

This commit is contained in:
Eric Lippmann 2014-11-12 14:43:58 +01:00
parent 6089372c42
commit a081db08a4
1 changed files with 3 additions and 1 deletions

View File

@ -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');