From a4eeea1443397daca8ddc6e8b175e77815f59792 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 28 Sep 2011 21:57:53 +0200 Subject: [PATCH] Resetting language cache now works properly --- .../files/lib/system/language/LanguageFactory.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); + } } } -- 2.20.1