From: Matthias Schmidt Date: Sun, 25 Sep 2011 13:13:41 +0000 (+0200) Subject: Fixes bug during installation of new language items X-Git-Tag: 2.0.0_Beta_1~1771^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=83f9480c2afbf7f126ce255a149575e27d79c7fd;p=GitHub%2FWoltLab%2FWCF.git Fixes bug during installation of new language items --- 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 1f7c7cd651..f3f1c01ace 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php @@ -121,7 +121,7 @@ class LanguagePackageInstallationPlugin extends AbstractXMLPackageInstallationPl if ($languageFile !== null) { if ($xml = $this->readLanguage($languageFile)) { // get language object - $language = LanguageFactory::getLanguageByCode($installedLanguage['languageCode']); + $language = LanguageFactory::getInstance()->getLanguageByCode($installedLanguage['languageCode']); $languageEditor = new LanguageEditor($language); // import xml