From: Tim Düsterhus Date: Thu, 20 Aug 2020 13:09:50 +0000 (+0200) Subject: Remove support for filtering the results of PackageUpdateServer::getActiveUpdateServers() X-Git-Tag: 5.3.0_Alpha_1~22^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1ce10adeb6b0803cef0a36d29130064c03bd3cea;p=GitHub%2FWoltLab%2FWCF.git Remove support for filtering the results of PackageUpdateServer::getActiveUpdateServers() --- 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 2f831a75b3..96686c23cb 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 @@ -68,11 +68,12 @@ class PackageUpdateServer extends DatabaseObject { * @return PackageUpdateServer[] */ public static final function getActiveUpdateServers(array $packageUpdateServerIDs = []) { - $list = new PackageUpdateServerList(); - $list->getConditionBuilder()->add("isDisabled = ?", [0]); if (!empty($packageUpdateServerIDs)) { - $list->getConditionBuilder()->add("packageUpdateServerID IN (?)", [$packageUpdateServerIDs]); + throw new \InvalidArgumentException("Filtering package update servers by ID is no longer supported."); } + + $list = new PackageUpdateServerList(); + $list->getConditionBuilder()->add("isDisabled = ?", [0]); $list->readObjects(); if (ENABLE_ENTERPRISE_MODE) {