Clear page cache in LanguageEditor::copyLanguageContent()
authorMatthias Schmidt <gravatronics@live.com>
Fri, 23 Sep 2016 20:26:26 +0000 (22:26 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 23 Sep 2016 20:26:26 +0000 (22:26 +0200)
wcfsetup/install/files/lib/data/language/LanguageEditor.class.php

index d1568c3f9466cce5f060a0db455658acf6b7d16f..5250eccb1de9a5f54906bfb4329327f415d2753e 100644 (file)
@@ -4,6 +4,7 @@ use wcf\data\language\category\LanguageCategory;
 use wcf\data\language\category\LanguageCategoryEditor;
 use wcf\data\language\item\LanguageItemEditor;
 use wcf\data\language\item\LanguageItemList;
+use wcf\data\page\PageEditor;
 use wcf\data\DatabaseObjectEditor;
 use wcf\data\IEditableCachedObject;
 use wcf\system\cache\builder\LanguageCacheBuilder;
@@ -586,5 +587,7 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje
                        WHERE           languageID = ?";
                $statement = WCF::getDB()->prepareStatement($sql);
                $statement->execute([$destinationLanguageID, $destinationLanguageID, $sourceLanguageID]);
+               
+               PageEditor::resetCache();
        }
 }