Merge pull request #25146 from owncloud/butonic-patch-1

emit correct signal when disabling an app
This commit is contained in:
Vincent Petry 2016-06-16 17:03:41 +02:00 committed by GitHub
commit 3917969728
1 changed files with 1 additions and 1 deletions

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