From cecd5ba0d2d8c070ddb44c54bb01a6f4ac447d87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 29 Sep 2023 14:42:31 +0200 Subject: [PATCH] Invoke PackageUpdateDispatcher::refreshPackageData() directly in LicensePage --- wcfsetup/install/files/lib/acp/page/LicensePage.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/page/LicensePage.class.php b/wcfsetup/install/files/lib/acp/page/LicensePage.class.php index 6ecb670e6e..1bfaad9bf4 100644 --- a/wcfsetup/install/files/lib/acp/page/LicensePage.class.php +++ b/wcfsetup/install/files/lib/acp/page/LicensePage.class.php @@ -6,12 +6,12 @@ use Laminas\Diactoros\Response\RedirectResponse; use wcf\acp\form\LicenseEditForm; use wcf\data\package\Package; use wcf\data\package\update\PackageUpdate; -use wcf\data\package\update\PackageUpdateAction; use wcf\data\package\update\server\PackageUpdateServer; use wcf\page\AbstractPage; use wcf\system\database\util\PreparedStatementConditionBuilder; use wcf\system\package\license\LicenseApi; use wcf\system\package\license\LicenseData; +use wcf\system\package\PackageUpdateDispatcher; use wcf\system\request\LinkHandler; use wcf\system\WCF; @@ -58,7 +58,7 @@ final class LicensePage extends AbstractPage ); } - (new PackageUpdateAction([], 'refreshDatabase'))->executeAction(); + PackageUpdateDispatcher::getInstance()->refreshPackageDatabase(); $licenseApi = new LicenseApi(); $this->licenseData = $licenseApi->fetchFromRemote(); -- 2.20.1