From: Matthias Schmidt Date: Tue, 20 Sep 2016 15:55:24 +0000 (+0200) Subject: Fix installing language items of disabled language X-Git-Tag: 3.0.0_Beta_1~64 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=048cfddf5808657527b9675c50b5a52375418175;p=GitHub%2FWoltLab%2FWCF.git Fix installing language items of disabled language --- diff --git a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php index e1f35452ce..c52d2bb452 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php @@ -1,9 +1,9 @@ readLanguage($languageFile)) { // get language object - $language = LanguageFactory::getInstance()->getLanguageByCode($installedLanguage['languageCode']); - $languageEditor = new LanguageEditor($language); + $languageEditor = new LanguageEditor(new Language(null, $installedLanguage)); // import xml // don't update language files if package is an application