Merge pull request #25149 from owncloud/backport25146

–emit correct signal when disabling an app
This commit is contained in:
Vincent Petry 2016-06-16 18:06:48 +02:00 committed by GitHub
commit 82384ab91c
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,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();