diff --git a/kernel/services/ModuleService.php b/kernel/services/ModuleService.php index 58a79fa..b583eb0 100644 --- a/kernel/services/ModuleService.php +++ b/kernel/services/ModuleService.php @@ -65,8 +65,9 @@ class ModuleService foreach ($dirs as $dir){ foreach (new DirectoryIterator($dir) as $fileInfo) { - if(basename($fileInfo->getPathname()) !== $slug) continue; - return $fileInfo->getPathname(); + if(basename($fileInfo->getPathname()) === $slug) { + return $fileInfo->getPathname(); + } } } return false;