From 05a668fe1aaa235669b79160d70254569f151a60 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 19 Jul 2024 16:01:57 +0200 Subject: [PATCH] run.php: Don't provide the builtin icingadb hook.. ..if that is not enabled --- run.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run.php b/run.php index 9e94cef8..8ac42099 100644 --- a/run.php +++ b/run.php @@ -4,7 +4,10 @@ /** @var \Icinga\Application\Modules\Module $this */ -$this->provideHook('Notifications/ObjectsRenderer'); +if ($this::exists('icingadb')) { + $this->provideHook('Notifications/ObjectsRenderer'); +} + $this->provideHook('authentication', 'SessionStorage', true); $this->addRoute( 'static-file',