Do not try to detect the library path in index.php
Packagers will use a custom index.php.
This commit is contained in:
parent
8e1a6a5b83
commit
8b1419bb04
|
@ -2,8 +2,4 @@
|
|||
// {{{ICINGA_LICENSE_HEADER}}}
|
||||
// {{{ICINGA_LICENSE_HEADER}}}
|
||||
|
||||
if (! @include_once dirname(__DIR__) . '/library/Icinga/Application/webrouter.php') {
|
||||
// If the Icinga library wasn't found under ICINGAWEB_BASEDIR, require that the Icinga library is found in PHP's
|
||||
// include path which is the case if Icinga Web 2 is installed via packages
|
||||
require_once 'Icinga/Application/webrouter.php';
|
||||
}
|
||||
require_once dirname(__DIR__) . '/library/Icinga/Application/webrouter.php';
|
||||
|
|
Loading…
Reference in New Issue