aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/helper.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-18 15:23:05 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-18 15:23:05 +0100
commit36cc0528e3cfd29a4bc7e4b72d6f2b243845a7cc (patch)
tree4638753c2d4698c2677231834b28aabc5dd28309 /apps/files/lib/helper.php
parenta743047e8228fb4973d99e0101dec5e6c39f81b9 (diff)
parentb460bde7c6c3c70fc0010133c00f1e76a952fa48 (diff)
downloadnextcloud-server-36cc0528e3cfd29a4bc7e4b72d6f2b243845a7cc.tar.gz
nextcloud-server-36cc0528e3cfd29a4bc7e4b72d6f2b243845a7cc.zip
Merge pull request #21288 from owncloud/deprecated_helper_mimetypes
Remove deprecated OC_Helper mimetype functions
Diffstat (limited to 'apps/files/lib/helper.php')
-rw-r--r--apps/files/lib/helper.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php
index 9a4e8d59786..4f960518839 100644
--- a/apps/files/lib/helper.php
+++ b/apps/files/lib/helper.php
@@ -66,15 +66,15 @@ class Helper {
*/
public static function determineIcon($file) {
if($file['type'] === 'dir') {
- $icon = \OC_Helper::mimetypeIcon('dir');
+ $icon = \OC::$server->getMimeTypeDetector()->mimeTypeIcon('dir');
// TODO: move this part to the client side, using mountType
if ($file->isShared()) {
- $icon = \OC_Helper::mimetypeIcon('dir-shared');
+ $icon = \OC::$server->getMimeTypeDetector()->mimeTypeIcon('dir-shared');
} elseif ($file->isMounted()) {
- $icon = \OC_Helper::mimetypeIcon('dir-external');
+ $icon = \OC::$server->getMimeTypeDetector()->mimeTypeIcon('dir-external');
}
}else{
- $icon = \OC_Helper::mimetypeIcon($file->getMimetype());
+ $icon = \OC::$server->getMimeTypeDetector()->mimeTypeIcon($file->getMimetype());
}
return substr($icon, 0, -3) . 'svg';