From fa16d11d5b3b8681d7ed938a2bc2d53c67c6ba63 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 23 Nov 2020 12:30:45 +0100 Subject: [PATCH] Use modified package servers when running in enterprise mode --- .../data/package/update/server/PackageUpdateServer.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php index 5c0741ad80..bc00b3e095 100644 --- a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php +++ b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php @@ -53,11 +53,12 @@ class PackageUpdateServer extends DatabaseObject { parent::handleData($data); + $prefix = ENABLE_ENTERPRISE_MODE ? 'cloud/' : ''; if ($this->isWoltLabUpdateServer()) { - $this->data['serverURL'] = 'http://update.woltlab.com/'.\wcf\getMinorVersion().'/'; + $this->data['serverURL'] = 'http://update.woltlab.com/'.$prefix.\wcf\getMinorVersion().'/'; } if ($this->isWoltLabStoreServer()) { - $this->data['serverURL'] = 'http://store.woltlab.com/'.\wcf\getMinorVersion().'/'; + $this->data['serverURL'] = 'http://store.woltlab.com/'.$prefix.\wcf\getMinorVersion().'/'; } if ($this->isWoltLabUpdateServer() || $this->isWoltLabStoreServer()) { $this->data['isDisabled'] = 0; -- 2.20.1