From: Matthias Schmidt Date: Thu, 22 Nov 2018 18:07:45 +0000 (+0100) Subject: Reset language cache after installation X-Git-Tag: 5.2.0_Alpha_1~513 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1e3db8c4497a3e77ae79511005aa5cfb719ade13;p=GitHub%2FWoltLab%2FWCF.git Reset language cache after installation See #2545 --- 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