From fb14b37fd59bd021f77b81de6991198470918a59 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 6 Apr 2013 00:00:59 +0200 Subject: [PATCH] Added event after install/uninstall Fixes #1192 --- .../system/package/PackageInstallationDispatcher.class.php | 6 ++++-- .../package/PackageUninstallationDispatcher.class.php | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php index 36334f05d1..09cc75e676 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php @@ -1,7 +1,5 @@ resetAll(); + + EventHandler::getInstance()->fireAction($this, 'postInstall'); } 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 4a74f07d4c..a241b34d2b 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php @@ -7,6 +7,7 @@ use wcf\data\package\PackageEditor; use wcf\system\application\ApplicationHandler; use wcf\system\cache\builder\PackageCacheBuilder; use wcf\system\cache\CacheHandler; +use wcf\system\event\EventHandler; use wcf\system\exception\IllegalLinkException; use wcf\system\exception\SystemException; use wcf\system\language\LanguageFactory; @@ -14,6 +15,7 @@ use wcf\system\package\plugin\ObjectTypePackageInstallationPlugin; use wcf\system\package\plugin\SQLPackageInstallationPlugin; use wcf\system\setup\Uninstaller; use wcf\system\style\StyleHandler; +use wcf\system\user\storage\UserStorageHandler; use wcf\system\WCF; /** @@ -87,6 +89,8 @@ class PackageUninstallationDispatcher extends PackageInstallationDispatcher { // reset user storage UserStorageHandler::getInstance()->resetAll(); + + EventHandler::getInstance()->fireAction($this, 'postUninstall'); } if ($this->requireRestructureVersionTables) { -- 2.20.1