diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-17 17:07:48 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-12-17 17:07:48 +0100 |
commit | ecdf88e41b898889fe8e05bb9c05415dd6b03a95 (patch) | |
tree | 735f9198dad871e9dd6459f4ccd5dc986937c594 /apps/files_trashbin/lib | |
parent | 3818a055b96a528263585b93f598fb479b5a1ec4 (diff) | |
download | nextcloud-server-ecdf88e41b898889fe8e05bb9c05415dd6b03a95.tar.gz nextcloud-server-ecdf88e41b898889fe8e05bb9c05415dd6b03a95.zip |
Use proper public API for OC_Helper::getFileNameMimeType
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r-- | apps/files_trashbin/lib/helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/helper.php b/apps/files_trashbin/lib/helper.php index d14e97285c5..0ccf15cd2bc 100644 --- a/apps/files_trashbin/lib/helper.php +++ b/apps/files_trashbin/lib/helper.php @@ -87,7 +87,7 @@ class Helper $i = array( 'name' => $id, 'mtime' => $timestamp, - 'mimetype' => $view->is_dir($dir . '/' . $entryName) ? 'httpd/unix-directory' : \OC_Helper::getFileNameMimeType($id), + 'mimetype' => $view->is_dir($dir . '/' . $entryName) ? 'httpd/unix-directory' : \OC::$server->getMimeTypeDetector()->detectPath($id), 'type' => $view->is_dir($dir . '/' . $entryName) ? 'dir' : 'file', 'directory' => ($dir === '/') ? '' : $dir, 'size' => $size, |