summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-07-03 22:01:24 +0200
committerVincent Petry <pvince81@owncloud.com>2014-07-03 22:01:24 +0200
commitdd4273e2e30f38a5243f9e9a9a3c2db0f94695c1 (patch)
tree3793be2acd046aa219f5bb72cae1f7c3e6259d14
parent91cb0a6ead64d6b993f04c56a81a0ae7f6d0d84c (diff)
parent3c45925e747e74b29477166a9f1dbf98ce148bad (diff)
downloadnextcloud-server-dd4273e2e30f38a5243f9e9a9a3c2db0f94695c1.tar.gz
nextcloud-server-dd4273e2e30f38a5243f9e9a9a3c2db0f94695c1.zip
Merge pull request #9413 from owncloud/fix_hook_names
fix hook names
-rw-r--r--lib/base.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php
index d9fe94f1ccc..b526840a97d 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -626,10 +626,10 @@ class OC {
*/
public static function registerPreviewHooks() {
OC_Hook::connect('OC_Filesystem', 'post_write', 'OC\Preview', 'post_write');
- OC_Hook::connect('OC_Filesystem', 'preDelete', 'OC\Preview', 'prepare_delete_files');
+ OC_Hook::connect('OC_Filesystem', 'delete', 'OC\Preview', 'prepare_delete_files');
OC_Hook::connect('\OCP\Versions', 'preDelete', 'OC\Preview', 'prepare_delete');
OC_Hook::connect('\OCP\Trashbin', 'preDelete', 'OC\Preview', 'prepare_delete');
- OC_Hook::connect('OC_Filesystem', 'delete', 'OC\Preview', 'post_delete_files');
+ OC_Hook::connect('OC_Filesystem', 'post_delete', 'OC\Preview', 'post_delete_files');
OC_Hook::connect('\OCP\Versions', 'delete', 'OC\Preview', 'post_delete');
OC_Hook::connect('\OCP\Trashbin', 'delete', 'OC\Preview', 'post_delete');
}