summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-07-03 13:52:58 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-07-03 13:52:58 +0200
commit3c45925e747e74b29477166a9f1dbf98ce148bad (patch)
tree9f447a2b2be128c36390cdb70515b11d03ed2664 /lib/base.php
parente9f616b0a03e830ae3ec723a8eff511220810eca (diff)
downloadnextcloud-server-3c45925e747e74b29477166a9f1dbf98ce148bad.tar.gz
nextcloud-server-3c45925e747e74b29477166a9f1dbf98ce148bad.zip
fix hook names
Diffstat (limited to 'lib/base.php')
-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');
}