diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-29 20:35:19 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-29 20:35:57 +0100 |
commit | 4dcd0474d58bbcbea742948a03d3f26103f3933b (patch) | |
tree | e5e4f4b171f4f95509bfe7452f0d370d51631c64 /apps/files_versions/lib | |
parent | 8d81b9e6eb9f27b8b95f17b86bd3b1bdfddc122d (diff) | |
download | nextcloud-server-4dcd0474d58bbcbea742948a03d3f26103f3933b.tar.gz nextcloud-server-4dcd0474d58bbcbea742948a03d3f26103f3933b.zip |
Show mimeicon when versions don't have a preview
Fixes #2413
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_versions/lib')
-rw-r--r-- | apps/files_versions/lib/Storage.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_versions/lib/Storage.php b/apps/files_versions/lib/Storage.php index e7c2c8b7593..1aa19274c48 100644 --- a/apps/files_versions/lib/Storage.php +++ b/apps/files_versions/lib/Storage.php @@ -467,6 +467,7 @@ class Storage { $versions[$key]['path'] = Filesystem::normalizePath($pathinfo['dirname'] . '/' . $filename); $versions[$key]['name'] = $versionedFile; $versions[$key]['size'] = $view->filesize($dir . '/' . $entryName); + $versions[$key]['mimetype'] = \OC::$server->getMimeTypeDetector()->detectPath($versionedFile); } } } |