aboutsummaryrefslogtreecommitdiffstats
path: root/lib/app.php
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-06-27 14:09:22 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-06-27 14:09:22 +0200
commitc4aef892788ced15812cc31abcf34c085b66ce5a (patch)
tree3d7968d428c24512be18a6ccad09923bd5e54af6 /lib/app.php
parentaa7403500fdbc76b9e63b0de1553e1a4f61a4cf2 (diff)
downloadnextcloud-server-c4aef892788ced15812cc31abcf34c085b66ce5a.tar.gz
nextcloud-server-c4aef892788ced15812cc31abcf34c085b66ce5a.zip
introduce pre-disable-app hook and use it for the encryption app to reset migration status if the app was disabled
Diffstat (limited to 'lib/app.php')
-rw-r--r--lib/app.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/app.php b/lib/app.php
index f974dd9f594..f9b1c5ca7b5 100644
--- a/lib/app.php
+++ b/lib/app.php
@@ -259,6 +259,7 @@ class OC_App{
*/
public static function disable( $app ) {
// check if app is a shipped app or not. if not delete
+ \OC_Hook::emit('OC_App', 'pre_disable', array('app' => $app));
OC_Appconfig::setValue( $app, 'enabled', 'no' );
// check if app is a shipped app or not. if not delete