From 8c7bf75f0ae51d9ce4eb23a286c05046fc6700bc Mon Sep 17 00:00:00 2001 From: Dennis Kraffczyk Date: Tue, 16 Jun 2026 13:35:17 +0200 Subject: [PATCH] Inject language variable to `NamedUserException` --- wcfsetup/install/files/lib/acp/page/LicensePage.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/page/LicensePage.class.php b/wcfsetup/install/files/lib/acp/page/LicensePage.class.php index 8fda1c2c242..631e832b5b4 100644 --- a/wcfsetup/install/files/lib/acp/page/LicensePage.class.php +++ b/wcfsetup/install/files/lib/acp/page/LicensePage.class.php @@ -69,7 +69,9 @@ public function readData() parent::readData(); if (PackageUpdateServer::isUpgradeOverrideEnabled()) { - throw new NamedUserException(); + throw new NamedUserException(HtmlString::fromSafeHtml( + WCF::getLanguage()->get('wcf.acp.license.error.upgradeOverrideEnabled') + )); } if (!LicenseApi::hasLicenseCredentials()) {