summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-09-24 21:06:27 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-24 21:06:27 +0200
commite7bc2a10e3ffd16cda8d15ff06dcbc870e34a627 (patch)
tree975e247e53378834d6b59b06ae3a76b5bb60a217 /lib/base.php
parent320a4eb149150144e755914c39281653cf2a2130 (diff)
parentb3ff773bbf363e4d7d44d7c6ce7ae2eec8250cfb (diff)
downloadnextcloud-server-e7bc2a10e3ffd16cda8d15ff06dcbc870e34a627.tar.gz
nextcloud-server-e7bc2a10e3ffd16cda8d15ff06dcbc870e34a627.zip
Merge pull request #15098 from owncloud/fix_preview_versions_revert_issue
fix issue with version rollback and thumbnails
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 3624a3fbaf9..f99acaaa80a 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');
}
/**