Skip to content
Snippets Groups Projects
Commit feee4b86 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

add delete hook for trash bin app

parent a745901d
Branches
No related tags found
No related merge requests found
...@@ -530,6 +530,7 @@ class Trashbin { ...@@ -530,6 +530,7 @@ class Trashbin {
$size += $view->filesize('/files_trashbin/files/' . $file); $size += $view->filesize('/files_trashbin/files/' . $file);
} }
$view->unlink('/files_trashbin/files/' . $file); $view->unlink('/files_trashbin/files/' . $file);
\OC_Hook::emit('\OCP\Trashbin', 'delete', array('path' => $path));
$trashbinSize -= $size; $trashbinSize -= $size;
self::setTrashbinSize($user, $trashbinSize); self::setTrashbinSize($user, $trashbinSize);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment