Use modified package servers when running in enterprise mode
authorAlexander Ebert <ebert@woltlab.com>
Mon, 23 Nov 2020 11:30:45 +0000 (12:30 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 23 Nov 2020 11:30:45 +0000 (12:30 +0100)
wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php

index 5c0741ad807cd6f43a09a5b0b2cddd59e713c5d6..bc00b3e095631b14ebfb9b85142d3213541b6a62 100644 (file)
@@ -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;