activate module fix
This commit is contained in:
parent
456d5afec3
commit
f48d6753e2
@ -65,8 +65,9 @@ class ModuleService
|
|||||||
|
|
||||||
foreach ($dirs as $dir){
|
foreach ($dirs as $dir){
|
||||||
foreach (new DirectoryIterator($dir) as $fileInfo) {
|
foreach (new DirectoryIterator($dir) as $fileInfo) {
|
||||||
if(basename($fileInfo->getPathname()) !== $slug) continue;
|
if(basename($fileInfo->getPathname()) === $slug) {
|
||||||
return $fileInfo->getPathname();
|
return $fileInfo->getPathname();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user