This commit is contained in:
2026-03-04 23:07:20 +01:00
parent 70a475c36e
commit ab41951cf3
3 changed files with 24 additions and 1 deletions

View File

@@ -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