From 480836b2c5d159b7c6f8b1af697d0822f9f6abc9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 20 Aug 2020 13:48:48 +0200 Subject: [PATCH] Dynamically generate package update server path in PackageUpdateServer::handleData() --- .../data/package/update/server/PackageUpdateServer.class.php | 4 ++-- 1 file changed, 2 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 9b7941bc57..2f831a75b3 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 @@ -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().'/'; } } -- 2.20.1