Skip to content

Commit

Permalink
run.php: Don't provide the builtin icingadb hook..
Browse files Browse the repository at this point in the history
..if that is not enabled
  • Loading branch information
nilmerg committed Jul 19, 2024
1 parent 4e5bf52 commit 05a668f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion run.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 05a668f

Please sign in to comment.