diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-11-12 14:00:36 +0100 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-11-12 14:00:36 +0100 |
commit | feee4b865b5dc700d5380af30fc0a68949bb296c (patch) | |
tree | 372dfd6c40940823688664645b7e7068953f7baa /apps/files_trashbin | |
parent | a745901d50c67728c0a8b7f0a8820ebd6992bad6 (diff) | |
download | nextcloud-server-feee4b865b5dc700d5380af30fc0a68949bb296c.tar.gz nextcloud-server-feee4b865b5dc700d5380af30fc0a68949bb296c.zip |
add delete hook for trash bin app
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r-- | apps/files_trashbin/lib/trashbin.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php index c79afdc0c2e..4e314d62d01 100644 --- a/apps/files_trashbin/lib/trashbin.php +++ b/apps/files_trashbin/lib/trashbin.php @@ -530,6 +530,7 @@ class Trashbin { $size += $view->filesize('/files_trashbin/files/' . $file); } $view->unlink('/files_trashbin/files/' . $file); + \OC_Hook::emit('\OCP\Trashbin', 'delete', array('path' => $path)); $trashbinSize -= $size; self::setTrashbinSize($user, $trashbinSize); |