add trash bin and file versions delete hooks in OC::registerPreviewHooks

This commit is contained in:
Georg Ehrke 2013-11-12 14:08:55 +01:00
parent 238e4bc3eb
commit 49cd5dad24
1 changed files with 2 additions and 0 deletions

View File

@ -619,6 +619,8 @@ class OC {
public static function registerPreviewHooks() {
OC_Hook::connect('OC_Filesystem', 'post_write', 'OC\Preview', 'post_write');
OC_Hook::connect('OC_Filesystem', 'delete', 'OC\Preview', 'post_delete');
OC_Hook::connect('\OCP\Versions', 'delete', 'OC\Preview', 'post_delete');
OC_Hook::connect('\OCP\Trashbin', 'delete', 'OC\Preview', 'post_delete');
}
/**