]> source.dussan.org Git - nextcloud-server.git/commitdiff
adding icons for shared folders and external folders
authorThomas Müller <thomas.mueller@tmit.eu>
Wed, 11 Sep 2013 22:12:20 +0000 (00:12 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 11 Sep 2013 22:12:20 +0000 (00:12 +0200)
lib/helper.php

index 5fb8fed3459570aa43ce5688d72d90d86f671e3c..1f1ce8451c06514cdc57a374f9d6a65b8a05249c 100644 (file)
@@ -232,6 +232,14 @@ class OC_Helper {
                        self::$mimetypeIcons[$mimetype] = OC::$WEBROOT . '/core/img/filetypes/folder.png';
                        return OC::$WEBROOT . '/core/img/filetypes/folder.png';
                }
+               if ($mimetype === 'dir-shared') {
+                       self::$mimetypeIcons[$mimetype] = OC::$WEBROOT . '/core/img/filetypes/folder-shared.png';
+                       return OC::$WEBROOT . '/core/img/filetypes/folder-shared.png';
+               }
+               if ($mimetype === 'dir-external') {
+                       self::$mimetypeIcons[$mimetype] = OC::$WEBROOT . '/core/img/filetypes/folder-external.png';
+                       return OC::$WEBROOT . '/core/img/filetypes/folder-external.png';
+               }
 
                // Icon exists?
                if (file_exists(OC::$SERVERROOT . '/core/img/filetypes/' . $icon . '.png')) {