Dynamically generate package update server path in PackageUpdateServer::handleData()
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 20 Aug 2020 11:48:48 +0000 (13:48 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 20 Aug 2020 11:48:48 +0000 (13:48 +0200)
wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php

index 9b7941bc57a62f82df1c8c2fb6caaf5174273865..2f831a75b347264fb360ad346bde77f404d04ddd 100644 (file)
@@ -54,10 +54,10 @@ class PackageUpdateServer extends DatabaseObject {
                parent::handleData($data);
                
                if ($this->isWoltLabUpdateServer()) {
-                       $this->data['serverURL'] = 'http://update.woltlab.com/5.3/';
+                       $this->data['serverURL'] = 'http://update.woltlab.com/'.\wcf\getMinorVersion().'/';
                }
                if ($this->isWoltLabStoreServer()) {
-                       $this->data['serverURL'] = 'http://store.woltlab.com/5.3/';
+                       $this->data['serverURL'] = 'http://store.woltlab.com/'.\wcf\getMinorVersion().'/';
                }
        }