summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-07-17 13:18:01 +0200
committerRobin Appelman <icewind@owncloud.com>2015-10-01 13:14:47 +0200
commitf4d180ee5c6be5b3d061a035299079fc675b945f (patch)
treea2044cb77affc104fd67191a768997ea72af6e5f /core/ajax
parent64994facce890e53a50bc75047e502e434c9c749 (diff)
downloadnextcloud-server-f4d180ee5c6be5b3d061a035299079fc675b945f.tar.gz
nextcloud-server-f4d180ee5c6be5b3d061a035299079fc675b945f.zip
allow passing the fileinfo to the preview manager
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/preview.php2
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);