From 2b2c99cd179427790c053887582bf3f6e14453a6 Mon Sep 17 00:00:00 2001 From: stasbilay02 Date: Fri, 24 Jan 2025 11:29:04 +0300 Subject: [PATCH] some fix --- kernel/services/ThemeService.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/services/ThemeService.php b/kernel/services/ThemeService.php index 87180df..a93f33d 100644 --- a/kernel/services/ThemeService.php +++ b/kernel/services/ThemeService.php @@ -73,7 +73,6 @@ class ThemeService $dependenceArray = RESTClient::request($_ENV['MODULE_SHOP_URL'] . '/api/module_shop/get_all_dependencies/' . $themeInfo['slug']); $dependenceArray = json_decode($dependenceArray->getBody()->getContents(), true); - foreach ($dependenceArray as $depend) { if (!$this->moduleService->isInstall($depend)) { if (!$this->moduleShopService->existsInModuleShop($depend)) { @@ -83,7 +82,6 @@ class ThemeService } } - if (!$this->moduleService->recursiveActivateDependencies($dependenceArray)){ return false; } @@ -91,8 +89,6 @@ class ThemeService $activeTheme->value = getConst($theme); $activeTheme->save(); return true; - - } public function getActiveThemeInfo(): false|array|string