Skip to content

Commit

Permalink
Define the ICINGAWEB_VENDORS contant
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Nov 12, 2014
1 parent 921f324 commit 11e1358
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions library/Icinga/Application/ApplicationBootstrap.php
Expand Up @@ -103,15 +103,17 @@ protected function __construct($configDir = null)
{
$this->libDir = realpath(__DIR__ . '/../..');

if (! defined('ICINGAWEB_BASEDIR')) {
throw new LogicException('\'ICINGAWEB_BASEDIR\' is not defined');
}
define('ICINGAWEB_VENDORS', ICINGAWEB_BASEDIR . '/library/vendor');

if (defined('ICINGAWEB_APPDIR')) {
$this->appDir = ICINGAWEB_APPDIR;
} else {
if (array_key_exists('ICINGAWEB_APPDIR', $_SERVER)) {
$this->appDIr = $_SERVER['ICINGAWEB_APPDIR'];
$this->appDir = $_SERVER['ICINGAWEB_APPDIR'];
} else {
if (! defined('ICINGAWEB_BASEDIR')) {
throw new LogicException('\'ICINGAWEB_BASEDIR\' is not defined');
}
$this->appDir = ICINGAWEB_BASEDIR . '/application';
}
define('ICINGAWEB_APPDIR', $this->appDir);
Expand Down

0 comments on commit 11e1358

Please sign in to comment.