diff --git a/library/Icinga/Application/Modules/Manager.php b/library/Icinga/Application/Modules/Manager.php index 9729de74f..abb923302 100644 --- a/library/Icinga/Application/Modules/Manager.php +++ b/library/Icinga/Application/Modules/Manager.php @@ -260,6 +260,13 @@ class Manager ); } + if ($this->hasUnmetDependencies($name)) { + throw new ConfigurationError( + t('Module "%s" can\'t be enabled. Module has unmet dependencies'), + $name + ); + } + clearstatcache(true); $target = $this->installedBaseDirs[$name]; $link = $this->enableDir . DIRECTORY_SEPARATOR . $name;