diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-03-13 15:39:39 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-03-13 15:39:39 +0100 |
commit | 30831b6b554fbc99f422d5d490f6a325a6296f3d (patch) | |
tree | a170537965cdd0be4ed0e39003a419506366b16c | |
parent | f3a2daaa9d4fd574236b9168cdd6b0598d8578ce (diff) | |
download | nextcloud-server-30831b6b554fbc99f422d5d490f6a325a6296f3d.tar.gz nextcloud-server-30831b6b554fbc99f422d5d490f6a325a6296f3d.zip |
we need to listen to the pre delete hook, otherwise the file is already gone
-rw-r--r-- | apps/files_sharing/appinfo/app.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php index 57116698159..9363a5431fa 100644 --- a/apps/files_sharing/appinfo/app.php +++ b/apps/files_sharing/appinfo/app.php @@ -12,7 +12,7 @@ OCP\Share::registerBackend('file', 'OC_Share_Backend_File'); OCP\Share::registerBackend('folder', 'OC_Share_Backend_Folder', 'file'); OCP\Util::addScript('files_sharing', 'share'); \OC_Hook::connect('OC_Filesystem', 'post_write', '\OC\Files\Cache\Shared_Updater', 'writeHook'); -\OC_Hook::connect('OC_Filesystem', 'post_delete', '\OC\Files\Cache\Shared_Updater', 'deleteHook'); +\OC_Hook::connect('OC_Filesystem', 'delete', '\OC\Files\Cache\Shared_Updater', 'deleteHook'); \OC_Hook::connect('OC_Filesystem', 'post_rename', '\OC\Files\Cache\Shared_Updater', 'renameHook'); \OC_Hook::connect('OCP\Share', 'post_shared', '\OC\Files\Cache\Shared_Updater', 'shareHook'); \OC_Hook::connect('OCP\Share', 'pre_unshare', '\OC\Files\Cache\Shared_Updater', 'shareHook');
\ No newline at end of file |