summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-02-19 15:08:05 +0100
committerRobin Appelman <icewind@owncloud.com>2014-02-19 15:08:05 +0100
commitf33d35cd073addb08c78a65b719c72eb5424434a (patch)
treea099d5032f070da79fd78ab11669d907b592031a /apps/files_sharing
parent609a91a9b1bbee423a6bda2420dc4010b46757f6 (diff)
downloadnextcloud-server-f33d35cd073addb08c78a65b719c72eb5424434a.tar.gz
nextcloud-server-f33d35cd073addb08c78a65b719c72eb5424434a.zip
Fix svg icons for public shares and external/shared files
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/public.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index e7a5f5024b8..fe61dd4d5a0 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -32,7 +32,8 @@ function determineIcon($file, $sharingRoot, $sharingToken) {
if($file['isPreviewAvailable']) {
return OCP\publicPreview_icon($relativePath, $sharingToken) . '&c=' . $file['etag'];
}
- return OCP\mimetype_icon($file['mimetype']);
+ $icon = OCP\mimetype_icon($file['mimetype']);
+ return substr($icon, 0, -3) . 'svg';
}
if (isset($_GET['t'])) {