Skip to content

Commit

Permalink
icingacli: Fix "Notice: Constant ICINGAWEB_BASEDIR already defined"
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Nov 12, 2014
1 parent 6089372 commit a081db0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/Icinga/Application/ApplicationBootstrap.php
Expand Up @@ -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');

Expand Down

0 comments on commit a081db0

Please sign in to comment.