diff options
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"; } } |