Fixes bug during installation of new language items
authorMatthias Schmidt <gravatronics@live.com>
Sun, 25 Sep 2011 13:13:41 +0000 (15:13 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 25 Sep 2011 13:13:41 +0000 (15:13 +0200)
wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php

index 1f7c7cd651bf21aa0d63c7e126f4c8a345885a76..f3f1c01ace1def416a208d644070bb9f708187ad 100644 (file)
@@ -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