Resetting language cache now works properly
authorAlexander Ebert <ebert@woltlab.com>
Wed, 28 Sep 2011 19:57:53 +0000 (21:57 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 28 Sep 2011 19:57:53 +0000 (21:57 +0200)
wcfsetup/install/files/lib/system/language/LanguageFactory.class.php

index 66003cb68e82a8c01cf818128643b6ffb1e6f186..aa1053f607898358d0efe26c972db4ea0569c001 100644 (file)
@@ -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();
+               }
        }
 }