Reset user storage after install/update/uninstall
authorAlexander Ebert <ebert@woltlab.com>
Fri, 5 Apr 2013 21:57:02 +0000 (23:57 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 5 Apr 2013 21:57:02 +0000 (23:57 +0200)
Fixes #1183

wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php
wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php

index 461035b118e9971c62117fe3d100af032c294268..36334f05d1c0e42bc897d0e50acdf0535671b8a9 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 namespace wcf\system\package;
+use wcf\system\user\storage\UserStorageHandler;
+
 use wcf\data\application\Application;
 use wcf\data\application\ApplicationEditor;
 use wcf\data\language\category\LanguageCategory;
@@ -174,6 +176,9 @@ class PackageInstallationDispatcher {
                        
                        // reset stylesheets
                        StyleHandler::resetStylesheets();
+                       
+                       // reset user storage
+                       UserStorageHandler::getInstance()->resetAll();
                }       
                
                if ($this->requireRestructureVersionTables) {
index a4a766910fd5029af3b815f11621982f08b88fd2..4a74f07d4c8091717584251eda6647179c7e01b1 100644 (file)
@@ -84,6 +84,9 @@ class PackageUninstallationDispatcher extends PackageInstallationDispatcher {
                        
                        // rebuild application paths
                        ApplicationHandler::rebuild();
+                       
+                       // reset user storage
+                       UserStorageHandler::getInstance()->resetAll();
                }
                
                if ($this->requireRestructureVersionTables) {