From b3ff773bbf363e4d7d44d7c6ce7ae2eec8250cfb Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Mon, 23 Mar 2015 01:05:33 +0100 Subject: 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 --- lib/private/preview.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/private/preview.php') diff --git a/lib/private/preview.php b/lib/private/preview.php index db2a56f9fa5..f2ff40c51f7 100644 --- a/lib/private/preview.php +++ b/lib/private/preview.php @@ -1300,6 +1300,13 @@ class Preview { self::post_delete($args, 'files/'); } + /** + * @param array $args + */ + public static function post_delete_versions($args) { + self::post_delete($args, 'files/'); + } + /** * @param array $args * @param string $prefix -- cgit v1.2.3