activate module fix
This commit is contained in:
1 parent
456d5afec3
commit
f48d6753e2
1 file changed
+2
-1
@@ -65,10 +65,11 @@ class ModuleService
|
||||
|
||||
foreach ($dirs as $dir){
|
||||
foreach (new DirectoryIterator($dir) as $fileInfo) {
|
||||
if(basename($fileInfo->getPathname()) !== $slug) continue;
|
||||
if(basename($fileInfo->getPathname()) === $slug) {
|
||||
return $fileInfo->getPathname();
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user