summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2014-03-11 14:10:12 +0100
committerGeorg Ehrke <developer@georgehrke.com>2014-03-11 14:10:12 +0100
commit0f864c38bba9e3ad352064db76a3d46be46eba2d (patch)
tree12d4475a349aa5677eb8adb1d56986f92b339cd5 /apps
parentc1cb9ee9b0b19e17ddde046642fa01d52cda63bf (diff)
downloadnextcloud-server-0f864c38bba9e3ad352064db76a3d46be46eba2d.tar.gz
nextcloud-server-0f864c38bba9e3ad352064db76a3d46be46eba2d.zip
add preDelete hook for files_trashbin app
Diffstat (limited to 'apps')
-rw-r--r--apps/files_trashbin/lib/trashbin.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php
index f6816b2b4c2..7e91f8a59ff 100644
--- a/apps/files_trashbin/lib/trashbin.php
+++ b/apps/files_trashbin/lib/trashbin.php
@@ -563,6 +563,7 @@ class Trashbin {
} else {
$size += $view->filesize('/files_trashbin/files/' . $file);
}
+ \OC_Hook::emit('\OCP\Trashbin', 'preDelete', array('path' => '/files_trashbin/files/' . $file));
$view->unlink('/files_trashbin/files/' . $file);
\OC_Hook::emit('\OCP\Trashbin', 'delete', array('path' => '/files_trashbin/files/' . $file));