mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
Fix include path to the Cli in icingacli
This commit is contained in:
parent
277765ac72
commit
826cfbeceb
@ -8,7 +8,7 @@ define('ICINGAWEB_BASEDIR', dirname(__DIR__));
|
|||||||
// ICINGAWEB_BASEDIR is the parent folder for at least application, bin, modules, library/vendor and public
|
// ICINGAWEB_BASEDIR is the parent folder for at least application, bin, modules, library/vendor and public
|
||||||
|
|
||||||
|
|
||||||
if (! @include_once ICINGAWEB_BASEDIR . 'Icinga/Application/Cli.php') {
|
if (! @include_once ICINGAWEB_BASEDIR . '/library/Icinga/Application/Cli.php') {
|
||||||
// If the Icinga library wasn't found under ICINGAWEB_BASEDIR, require that the Icinga library is found in PHP's
|
// 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
|
// include path which is the case if Icinga Web 2 is installed via packages
|
||||||
require_once 'Icinga/Application/Cli.php';
|
require_once 'Icinga/Application/Cli.php';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user