From 921f324d3e10cbcbe9ca661b6cc53f1de2e4e3f2 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 12 Nov 2014 13:13:39 +0100 Subject: [PATCH] Prepare icingacli for having the Icinga library in PHP's include path --- bin/icingacli | 19 +++++++++++++++---- public/index.php | 2 +- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/bin/icingacli b/bin/icingacli index 1a0781222..5bd5086d2 100755 --- a/bin/icingacli +++ b/bin/icingacli @@ -1,6 +1,17 @@ #!/usr/bin/php -dispatch(); +dispatch(); diff --git a/public/index.php b/public/index.php index 92cd0a499..881c1318e 100644 --- a/public/index.php +++ b/public/index.php @@ -3,7 +3,7 @@ // {{{ICINGA_LICENSE_HEADER}}} define('ICINGAWEB_BASEDIR', dirname(__DIR__)); -// ICINGAWEB_BASEDIR is the parent folder for at least application, bin, modules and public +// ICINGAWEB_BASEDIR is the parent folder for at least application, bin, modules, library/vendor and public if (! @include_once ICINGAWEB_BASEDIR . '/library/Icinga/Application/webrouter.php') {