diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-13 10:15:57 -0700 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-13 10:15:57 -0700 |
commit | 7d748a6b0683a9de01921d8e943511bc29ffbca8 (patch) | |
tree | d8ac8d53e2cf78d44ed673cff67c301e1939f581 /apps | |
parent | c3ba49f38484272fc5ab4f42d187f76b6a416ab3 (diff) | |
parent | 30831b6b554fbc99f422d5d490f6a325a6296f3d (diff) | |
download | nextcloud-server-7d748a6b0683a9de01921d8e943511bc29ffbca8.tar.gz nextcloud-server-7d748a6b0683a9de01921d8e943511bc29ffbca8.zip |
Merge pull request #2277 from owncloud/fix_sharing_hooks
listen to the pre delete hook in the sharing app [master]
Diffstat (limited to 'apps')
-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 |