some fix
This commit is contained in:
parent
b6ba8f8718
commit
2b2c99cd17
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user