diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-10-07 18:09:49 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-10-07 18:09:49 +0200 |
commit | 1f562a2e83f106a637e402afae1697cf2936295a (patch) | |
tree | 8b328f2dc0ff3c7dd992602d5290a8fea7537936 /lib/helper.php | |
parent | 6449a45695221aeba5f8510a707a8fb14b1d7bc3 (diff) | |
download | nextcloud-server-1f562a2e83f106a637e402afae1697cf2936295a.tar.gz nextcloud-server-1f562a2e83f106a637e402afae1697cf2936295a.zip |
fixes for the mimetype icons
Diffstat (limited to 'lib/helper.php')
-rw-r--r-- | lib/helper.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/helper.php b/lib/helper.php index 9c2b5fc33ce..c2a81ba3306 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -101,20 +101,20 @@ class OC_Helper { // Is it a dir? if( $mimetype == "dir" ){ - return OC::$WEBROOT."/core/img/places/folder.svg"; + return OC::$WEBROOT."/core/img/filetypes/folder.png"; } // Icon exists? - if( file_exists( OC::$SERVERROOT."/core/img/filetypes/$mimetype.svg" )){ - return OC::$WEBROOT."/core/img/filetypes/$mimetype.svg"; + if( file_exists( OC::$SERVERROOT."/core/img/filetypes/$mimetype.png" )){ + return OC::$WEBROOT."/core/img/filetypes/$mimetype.png"; } //try only the first part of the filetype $mimetype=substr($mimetype,0,strpos($mimetype,'-')); - if( file_exists( OC::$SERVERROOT."/core/img/filetypes/$mimetype.svg" )){ - return OC::$WEBROOT."/core/img/filetypes/$mimetype.svg"; + if( file_exists( OC::$SERVERROOT."/core/img/filetypes/$mimetype.png" )){ + return OC::$WEBROOT."/core/img/filetypes/$mimetype.png"; } else{ - return OC::$WEBROOT."/core/img/filetypes/file.svg"; + return OC::$WEBROOT."/core/img/filetypes/file.png"; } } |