From: Alexander Ebert Date: Fri, 5 Apr 2013 22:00:59 +0000 (+0200) Subject: Added event after install/uninstall X-Git-Tag: 2.0.0_Beta_1~390^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fb14b37fd59bd021f77b81de6991198470918a59;p=GitHub%2FWoltLab%2FWCF.git Added event after install/uninstall Fixes #1192 --- 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) {