From 1e3db8c4497a3e77ae79511005aa5cfb719ade13 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 22 Nov 2018 19:07:45 +0100 Subject: [PATCH] Reset language cache after installation See #2545 --- .../plugin/LanguagePackageInstallationPlugin.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php index 867dd5a225..d614fb0bf4 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php @@ -294,6 +294,13 @@ class LanguagePackageInstallationPlugin extends AbstractXMLPackageInstallationPl // does nothing } + /** + * @inheritDoc + */ + protected function postImport() { + LanguageFactory::getInstance()->deleteLanguageCache(); + } + /** * @see \wcf\system\package\plugin\IPackageInstallationPlugin::getDefaultFilename() * @since 3.0 -- 2.20.1