Merge pull request #71 from nextcloud/fix-app-hook

emit correct signal if a app gets disabled
This commit is contained in:
blizzz 2016-06-13 14:20:38 +02:00 committed by GitHub
commit 5a038ff779

View file

@ -257,7 +257,7 @@ class AppManager implements IAppManager {
}
unset($this->installedAppsCache[$appId]);
$this->appConfig->setValue($appId, 'enabled', 'no');
$this->dispatcher->dispatch(ManagerEvent::EVENT_APP_ENABLE, new ManagerEvent(
$this->dispatcher->dispatch(ManagerEvent::EVENT_APP_DISABLE, new ManagerEvent(
ManagerEvent::EVENT_APP_DISABLE, $appId
));
$this->clearAppsCache();