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