diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-18 10:15:33 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-18 10:15:33 +0100 |
commit | 9e97bef935775b026410e54f5f1c549544186036 (patch) | |
tree | e11743ecb11d7375d1d1bae240a5671648d4fb12 /apps/files_versions | |
parent | 551e553bf4f6cda7c559429cc6f0c40d3eb15d0b (diff) | |
parent | ecdf88e41b898889fe8e05bb9c05415dd6b03a95 (diff) | |
download | nextcloud-server-9e97bef935775b026410e54f5f1c549544186036.tar.gz nextcloud-server-9e97bef935775b026410e54f5f1c549544186036.zip |
Merge pull request #21268 from owncloud/cleanup-OC_Helper-getFileNameMimeType
Use proper public API for OC_Helper::getFileNameMimeType
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/ajax/preview.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/ajax/preview.php b/apps/files_versions/ajax/preview.php index 0da518f3eaa..f21911abc9b 100644 --- a/apps/files_versions/ajax/preview.php +++ b/apps/files_versions/ajax/preview.php @@ -48,7 +48,7 @@ if($maxX === 0 || $maxY === 0) { try { list($user, $file) = \OCA\Files_Versions\Storage::getUidAndFilename($file); $preview = new \OC\Preview($user, 'files_versions', $file.'.v'.$version); - $mimetype = \OC_Helper::getFileNameMimeType($file); + $mimetype = \OC::$server->getMimeTypeDetector()->detectPath($file); $preview->setMimetype($mimetype); $preview->setMaxX($maxX); $preview->setMaxY($maxY); |