Share app no longer use the OCS API icon

Switch to new javascript mimetype resolver
This commit is contained in:
Roeland Jago Douma 2015-07-02 16:59:59 +02:00
parent c8145cdbd6
commit 868bc421cb
2 changed files with 1 additions and 2 deletions

View file

@ -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'])) {

View file

@ -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') {