summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2015-03-23 01:05:33 +0100
committerGeorg Ehrke <developer@georgehrke.com>2015-09-20 11:22:40 +0200
commitb3ff773bbf363e4d7d44d7c6ce7ae2eec8250cfb (patch)
treeb9434a7bb309a6ddae54a32a5db580cc523117a6 /lib/base.php
parentbbd1e996050fee80795d0e656da98b6451232c6c (diff)
downloadnextcloud-server-b3ff773bbf363e4d7d44d7c6ce7ae2eec8250cfb.tar.gz
nextcloud-server-b3ff773bbf363e4d7d44d7c6ce7ae2eec8250cfb.zip
delete cached preview when rolling back file's version
add random number using OC.parseQueryString and _.extend() version rollback: add missing prefix to OC\Preview::post_delete add test to assure that the rollback hook is called
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index f5ba05ded74..acb9814dd76 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -803,8 +803,9 @@ class OC {
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', 'post_delete', 'OC\Preview', 'post_delete_files');
- OC_Hook::connect('\OCP\Versions', 'delete', 'OC\Preview', 'post_delete');
+ OC_Hook::connect('\OCP\Versions', 'delete', 'OC\Preview', 'post_delete_versions');
OC_Hook::connect('\OCP\Trashbin', 'delete', 'OC\Preview', 'post_delete');
+ OC_Hook::connect('\OCP\Versions', 'rollback', 'OC\Preview', 'post_delete_versions');
}
/**