From ca9a7a6ae815b03afebf4c6ea608e5a7370f83ac Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 5 Apr 2013 23:57:02 +0200 Subject: [PATCH] Reset user storage after install/update/uninstall Fixes #1183 --- .../system/package/PackageInstallationDispatcher.class.php | 5 +++++ .../system/package/PackageUninstallationDispatcher.class.php | 3 +++ 2 files changed, 8 insertions(+) diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php index 461035b118..36334f05d1 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php @@ -1,5 +1,7 @@ resetAll(); } if ($this->requireRestructureVersionTables) { diff --git a/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php index a4a766910f..4a74f07d4c 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php @@ -84,6 +84,9 @@ class PackageUninstallationDispatcher extends PackageInstallationDispatcher { // rebuild application paths ApplicationHandler::rebuild(); + + // reset user storage + UserStorageHandler::getInstance()->resetAll(); } if ($this->requireRestructureVersionTables) { -- 2.20.1