From 868bc421cbb04054a01b05c4abbbcd16b2d451ec Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 2 Jul 2015 16:59:59 +0200 Subject: Share app no longer use the OCS API icon Switch to new javascript mimetype resolver --- apps/files_sharing/api/local.php | 1 - apps/files_sharing/js/sharedfilelist.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/files_sharing/api/local.php b/apps/files_sharing/api/local.php index b0ddba9fa11..2b2b475466f 100644 --- a/apps/files_sharing/api/local.php +++ b/apps/files_sharing/api/local.php @@ -69,7 +69,6 @@ class Local { if (\OC::$server->getPreviewManager()->isMimeSupported($share['mimetype'])) { $share['isPreviewAvailable'] = true; } - $share['icon'] = substr(\OC_Helper::mimetypeIcon($share['mimetype']), 0, -3) . 'svg'; } if (!is_null($share['token'])) { diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js index ca187940a08..98dbd4c6702 100644 --- a/apps/files_sharing/js/sharedfilelist.js +++ b/apps/files_sharing/js/sharedfilelist.js @@ -176,7 +176,7 @@ .map(function(share) { var file = { id: share.file_source, - icon: share.icon, + icon: OC.MimeType.getIconUrl(share.mimetype), mimetype: share.mimetype }; if (share.item_type === 'folder') { -- cgit v1.2.3