mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
configuration.php: Abort early if the ipl is not available
This commit is contained in:
parent
410a4e8be5
commit
dcfed87d84
1 changed files with 7 additions and 0 deletions
|
|
@ -4,12 +4,19 @@
|
|||
|
||||
namespace Icinga\Module\Icingadb
|
||||
{
|
||||
use Icinga\Application\Logger;
|
||||
use Icinga\Authentication\Auth;
|
||||
|
||||
/** @var \Icinga\Application\Modules\Module $this */
|
||||
|
||||
$this->provideSetupWizard('Icinga\Module\Icingadb\Setup\IcingaDbWizard');
|
||||
|
||||
if (! $this::exists('ipl')) {
|
||||
// TODO: Replace this once we have proper dependency management
|
||||
Logger::warning(t('Module "ipl" is not enabled. This module is mandatory for Icinga DB Web'));
|
||||
return;
|
||||
}
|
||||
|
||||
/** @var \Icinga\Application\Modules\Module $this */
|
||||
$section = $this->menuSection('Icinga DB', [
|
||||
'icon' => 'database',
|
||||
|
|
|
|||
Loading…
Reference in a new issue