mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 06:44:33 +02:00
Manager: Don't enable modules which have unmet dependencies
This commit is contained in:
parent
aba8c4a8ba
commit
28c7c41b55
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user