From f48d6753e20f7e925fb2eca25dd2956b76958ca5 Mon Sep 17 00:00:00 2001 From: stasbilay02 Date: Fri, 13 Sep 2024 15:55:52 +0300 Subject: [PATCH] activate module fix --- kernel/services/ModuleService.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;