From: Sascha Greuel Date: Mon, 1 May 2023 18:34:14 +0000 (+0200) Subject: Fixed LanguageImportForm X-Git-Tag: 6.0.0_Alpha_1~175^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=310fc0b6a702d0860e3cc36db6f13101f1e10e17;p=GitHub%2FWoltLab%2FWCF.git Fixed LanguageImportForm The LanguageImported listener requires an object of type `wcf\data\language\Language`, but receives an object of type `wcf\data\language\LanguageEditor`. --- diff --git a/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php index 0e9c57b6e8..d10466e016 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php @@ -154,7 +154,7 @@ class LanguageImportForm extends AbstractForm LanguageFactory::getInstance()->clearCache(); LanguageFactory::getInstance()->deleteLanguageCache(); - EventHandler::getInstance()->fire(new LanguageImported($this->language)); + EventHandler::getInstance()->fire(new LanguageImported(new Language($this->language->languageID))); $this->saved();