From: Alexander Ebert Date: Wed, 28 Sep 2011 19:57:53 +0000 (+0200) Subject: Resetting language cache now works properly X-Git-Tag: 2.0.0_Beta_1~1751 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a4eeea1443397daca8ddc6e8b175e77815f59792;p=GitHub%2FWoltLab%2FWCF.git Resetting language cache now works properly --- diff --git a/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php b/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php index 66003cb68e..aa1053f607 100644 --- a/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php +++ b/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php @@ -307,6 +307,10 @@ class LanguageFactory extends SingletonFactory { */ public function deleteLanguageCache() { LanguageEditor::deleteLanguageFiles(); - LanguageEditor::deleteCompiledTemplates(); + + foreach ($this->cache['languages'] as $language) { + $languageEditor = new LanguageEditor($language); + $languageEditor->deleteCompiledTemplates(); + } } }