summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-12-18 14:00:20 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-12-18 14:00:20 +0100
commitb460bde7c6c3c70fc0010133c00f1e76a952fa48 (patch)
tree75bc46bd7e9395fd604f4a41ae0ad9010e971503 /apps/files/lib
parenta54be132fca86ceb6d6bb87368f55937f41e94a2 (diff)
downloadnextcloud-server-b460bde7c6c3c70fc0010133c00f1e76a952fa48.tar.gz
nextcloud-server-b460bde7c6c3c70fc0010133c00f1e76a952fa48.zip
Removed deprecated OC_Helper::mimeTypeIcon function
Diffstat (limited to 'apps/files/lib')
-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';