asdasd
This commit is contained in:
@@ -186,6 +186,9 @@ final class ModuleManager
|
||||
{
|
||||
$this->modules = [];
|
||||
if (!is_dir($this->modulesPath)) {
|
||||
if (defined('APP_DEBUG_TOOL') && APP_DEBUG_TOOL) {
|
||||
@file_put_contents(__DIR__ . '/../../debug/module_scan.log', 'Modules path not found: ' . $this->modulesPath . PHP_EOL, FILE_APPEND);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -218,6 +221,10 @@ final class ModuleManager
|
||||
$module['enabled'] = $this->loadEnabledState($name, $module);
|
||||
$this->modules[$name] = $module;
|
||||
}
|
||||
|
||||
if (defined('APP_DEBUG_TOOL') && APP_DEBUG_TOOL) {
|
||||
@file_put_contents(__DIR__ . '/../../debug/module_scan.log', 'Modules loaded: ' . implode(', ', array_keys($this->modules)) . PHP_EOL, FILE_APPEND);
|
||||
}
|
||||
}
|
||||
|
||||
private function loadEnabledState(string $name, array $module): bool
|
||||
|
||||
Reference in New Issue
Block a user