diff options
author | Robin Appelman <robin@icewind.nl> | 2015-10-01 16:24:29 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2015-10-01 16:24:29 +0200 |
commit | 8ae4f5bf1a8adaac41715e2b5f1914ef899a09b6 (patch) | |
tree | edf1270f7b3fc440b9e43a9e31e2b5bffe95b0be /core | |
parent | 64994facce890e53a50bc75047e502e434c9c749 (diff) | |
parent | 1c3e28a73b602423dfc4ba447b26dcd3b8b45fac (diff) | |
download | nextcloud-server-8ae4f5bf1a8adaac41715e2b5f1914ef899a09b6.tar.gz nextcloud-server-8ae4f5bf1a8adaac41715e2b5f1914ef899a09b6.zip |
Merge pull request #17703 from owncloud/preview-better-cache-use
Better cache usage for previews
Diffstat (limited to 'core')
-rw-r--r-- | core/ajax/preview.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ajax/preview.php b/core/ajax/preview.php index c8bc05453ed..b6362fb3a70 100644 --- a/core/ajax/preview.php +++ b/core/ajax/preview.php @@ -53,7 +53,7 @@ if (!$info instanceof OCP\Files\FileInfo || !$always && !\OC::$server->getPrevie \OC_Response::setStatus(404); } else { $preview = new \OC\Preview(\OC_User::getUser(), 'files'); - $preview->setFile($file); + $preview->setFile($file, $info); $preview->setMaxX($maxX); $preview->setMaxY($maxY); $preview->setScalingUp($scalingUp); |