[CONFIG] Various fixes to use new configuration format

This commit is contained in:
Hugo Sales
2020-09-30 22:57:25 +00:00
committed by Hugo Sales
parent c4c693b283
commit e949dd654a
7 changed files with 75 additions and 16 deletions

View File

@@ -89,7 +89,6 @@ class ModuleManager
$module_manager = new self();
$entity_paths = [];
foreach ($module_paths as $path) {
// 'modules' and 'plugins' have the same length
$type = ucfirst(preg_replace('%' . INSTALLDIR . '/(component|plugin)s/.*%', '\1', $path));
$dir = dirname($path);
$module = basename($dir);