Skip to content

Commit

Permalink
Share app no longer use the OCS API icon
Browse files Browse the repository at this point in the history
Switch to new javascript mimetype resolver
  • Loading branch information
rullzer committed Jul 6, 2015
1 parent c8145cd commit 868bc42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion apps/files_sharing/api/local.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public static function getAllShares($params) {
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'])) {
Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/js/sharedfilelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 868bc42

Please sign in to comment.