mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
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}}}
|
||||||
// {{{ICINGA_LICENSE_HEADER}}}
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
|
||||||
if (! @include_once dirname(__DIR__) . '/library/Icinga/Application/webrouter.php') {
|
require_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';
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user