summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-08-14 20:49:47 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-08-14 20:49:47 +0200
commite5761d90ef223a04205ad93eea7706439ef0b60e (patch)
tree2d9dd5ed0f7347266ee176957a3d51deeb2372ca
parent137d644963b07d6c35ae7bbec58717daf3e977b2 (diff)
downloadnextcloud-server-e5761d90ef223a04205ad93eea7706439ef0b60e.tar.gz
nextcloud-server-e5761d90ef223a04205ad93eea7706439ef0b60e.zip
fix deleting old previews after file changed
-rwxr-xr-xlib/preview.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/preview.php b/lib/preview.php
index 92cc87c5897..293accb188a 100755
--- a/lib/preview.php
+++ b/lib/preview.php
@@ -592,7 +592,7 @@ class Preview {
if(substr($path, 0, 1) === '/') {
$path = substr($path, 1);
}
- $preview = new Preview(\OC_User::getUser(), 'files/', $path, 0, 0, false, true);
+ $preview = new Preview(\OC_User::getUser(), 'files/', $path);
$preview->deleteAllPreviews();
}