summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/ajax
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-12-17 17:07:48 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-12-17 17:07:48 +0100
commitecdf88e41b898889fe8e05bb9c05415dd6b03a95 (patch)
tree735f9198dad871e9dd6459f4ccd5dc986937c594 /apps/files_trashbin/ajax
parent3818a055b96a528263585b93f598fb479b5a1ec4 (diff)
downloadnextcloud-server-ecdf88e41b898889fe8e05bb9c05415dd6b03a95.tar.gz
nextcloud-server-ecdf88e41b898889fe8e05bb9c05415dd6b03a95.zip
Use proper public API for OC_Helper::getFileNameMimeType
Diffstat (limited to 'apps/files_trashbin/ajax')
-rw-r--r--apps/files_trashbin/ajax/preview.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/ajax/preview.php b/apps/files_trashbin/ajax/preview.php
index 49d6d93f574..ecb4971253f 100644
--- a/apps/files_trashbin/ajax/preview.php
+++ b/apps/files_trashbin/ajax/preview.php
@@ -62,7 +62,7 @@ try{
$fileName = substr($fileName, 0, $i);
}
}
- $mimetype = \OC_Helper::getFileNameMimeType($fileName);
+ $mimetype = \OC::$server->getMimeTypeDetector()->detectPath($fileName);
}
$preview->setMimetype($mimetype);
$preview->setMaxX($maxX);