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:
Michal Kváček
2016-04-01 17:03:04 +02:00
parent efd2465b8b
commit 8838ecc6b1
+1 -1
View File
@@ -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;
} }