emit correct signal when disabling an app

This commit is contained in:
Jörn Friedrich Dreyer 2016-06-16 14:17:06 +02:00 committed by GitHub
parent d7f98fcdef
commit 592ac6f7da

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();