mirror of
https://github.com/fruithost/Panel.git
synced 2026-11-30 20:35:44 +09:00
Adding module depencies
This commit is contained in:
9 files changed
+73
-7
No files matched your search
@@ -20,6 +20,13 @@
|
||||
|
||||
$path = sprintf('%s%s%s', $this->getPath(), DS, $info->getFilename());
|
||||
$module = new Module($path);
|
||||
|
||||
foreach($module->getInfo()->getDepencies() AS $name => $version) {
|
||||
if(!in_array($name, $enabled)) {
|
||||
$module->setLocked(true);
|
||||
}
|
||||
}
|
||||
|
||||
$module->setEnabled(in_array(basename($path), $enabled));
|
||||
$this->addModule(basename($path), $module);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user