Merge pull request #7668 from owncloud/trashbin_predelete

add preDelete hook for files_trashbin app
This commit is contained in:
Vincent Petry 2014-03-12 17:23:38 +01:00
commit 881739cbac
1 changed files with 1 additions and 0 deletions

View File

@ -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));