From 02214d8565f2c1c283abb8bf9d7493211f657e4f Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Fri, 10 May 2024 12:01:09 +0300 Subject: [PATCH] Update MicroweberComposerClientHelper.php --- web/Modules/Microweber/MicroweberComposerClientHelper.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/web/Modules/Microweber/MicroweberComposerClientHelper.php b/web/Modules/Microweber/MicroweberComposerClientHelper.php index 93865ba..0f8ef81 100644 --- a/web/Modules/Microweber/MicroweberComposerClientHelper.php +++ b/web/Modules/Microweber/MicroweberComposerClientHelper.php @@ -7,7 +7,6 @@ use MicroweberPackages\SharedServerScripts\MicroweberDownloader; class MicroweberComposerClientHelper { - public function getComposerClientInstance() { // The module connector must have own instance of composer client @@ -33,11 +32,10 @@ class MicroweberComposerClientHelper { $coreDownloader = new MicroweberDownloader(); - $updateAppChannel = 'stable'; - if ($updateAppChannel == 'stable') { - $coreDownloader->setReleaseSource(MicroweberDownloader::STABLE_RELEASE); - } else { + if (setting('microweber.update_app_channel') == 'development') { $coreDownloader->setReleaseSource(MicroweberDownloader::DEV_RELEASE); + } else { + $coreDownloader->setReleaseSource(MicroweberDownloader::STABLE_RELEASE); } $coreDownloader->setComposerClient($this->getComposerClientInstance());