Fixed LanguageImportForm
authorSascha Greuel <github@1-2.dev>
Mon, 1 May 2023 18:34:14 +0000 (20:34 +0200)
committerSascha Greuel <github@1-2.dev>
Mon, 1 May 2023 18:34:14 +0000 (20:34 +0200)
The LanguageImported listener requires an object of type `wcf\data\language\Language`, but receives an object of type `wcf\data\language\LanguageEditor`.

wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php

index 0e9c57b6e8e922b044149917cb8e1c596365e655..d10466e016d9e5855f9a30f895218c4c489b2f7c 100644 (file)
@@ -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();