From: Alexander Ebert Date: Mon, 23 Nov 2020 11:30:45 +0000 (+0100) Subject: Use modified package servers when running in enterprise mode X-Git-Tag: 5.3.1~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fa16d11d5b3b8681d7ed938a2bc2d53c67c6ba63;p=GitHub%2FWoltLab%2FWCF.git Use modified package servers when running in enterprise mode --- 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;