FIX: fix ModuleManager service provider.
This service provider checked, if FILE was writable. When no file existed, it could not be writtable and therefore no module.json was created.
This commit is contained in:
@@ -56,7 +56,7 @@ class ModuleManager extends ServiceProvider
|
|||||||
$path = config('modules.paths.modules') . DIRECTORY_SEPARATOR . $config->staticName . DIRECTORY_SEPARATOR . 'module.json';
|
$path = config('modules.paths.modules') . DIRECTORY_SEPARATOR . $config->staticName . DIRECTORY_SEPARATOR . 'module.json';
|
||||||
|
|
||||||
// check if module config is writable
|
// check if module config is writable
|
||||||
if (!is_writable($path)) {
|
if (!is_writable(dirname($path))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user