aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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 /lib
parent64994facce890e53a50bc75047e502e434c9c749 (diff)
downloadnextcloud-server-f4d180ee5c6be5b3d061a035299079fc675b945f.tar.gz
nextcloud-server-f4d180ee5c6be5b3d061a035299079fc675b945f.zip
allow passing the fileinfo to the preview manager
Diffstat (limited to 'lib')
-rw-r--r--lib/private/preview.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/preview.php b/lib/private/preview.php
index 1127048b7fd..996bf81703b 100644
--- a/lib/private/preview.php
+++ b/lib/private/preview.php
@@ -252,12 +252,13 @@ class Preview {
* Sets the path of the file you want a preview of
*
* @param string $file
+ * @param \OCP\Files\FileInfo|null $info
*
* @return \OC\Preview
*/
- public function setFile($file) {
+ public function setFile($file, $info = null) {
$this->file = $file;
- $this->info = null;
+ $this->info = $info;
if ($file !== '') {
$this->getFileInfo();