summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/appinfo
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-04-11 12:37:52 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-04-11 14:40:06 +0200
commit1b3b766244b772573e797fec4eee0cdce847367b (patch)
tree25bd245776d5dc7f0f246d86aade75c626c82618 /apps/files_trashbin/appinfo
parent544a46c69067fcbdf55391415c9d06c73fd21331 (diff)
downloadnextcloud-server-1b3b766244b772573e797fec4eee0cdce847367b.tar.gz
nextcloud-server-1b3b766244b772573e797fec4eee0cdce847367b.zip
cleanup the trash bin tables in the database after a user was deleted
Diffstat (limited to 'apps/files_trashbin/appinfo')
-rw-r--r--apps/files_trashbin/appinfo/app.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_trashbin/appinfo/app.php b/apps/files_trashbin/appinfo/app.php
index a6a99db034c..e83d3b8fbbd 100644
--- a/apps/files_trashbin/appinfo/app.php
+++ b/apps/files_trashbin/appinfo/app.php
@@ -3,5 +3,7 @@
OC::$CLASSPATH['OCA\Files_Trashbin\Hooks'] = 'files_trashbin/lib/hooks.php';
OC::$CLASSPATH['OCA\Files_Trashbin\Trashbin'] = 'files_trashbin/lib/trash.php';
-
+//Listen to delete file signal
OCP\Util::connectHook('OC_Filesystem', 'delete', "OCA\Files_Trashbin\Hooks", "remove_hook");
+//Listen to delete user signal
+OCP\Util::connectHook('OC_User', 'pre_deleteUser', "OCA\Files_Trashbin\Hooks", "deleteUser_hook"); \ No newline at end of file