diff options
author | Michiel@unhosted <michiel@unhosted.org> | 2011-10-09 17:13:34 +0200 |
---|---|---|
committer | Michiel@unhosted <michiel@unhosted.org> | 2011-10-09 17:13:34 +0200 |
commit | 6e62911a4ebeb16203cf88cd9b62da37b519ed62 (patch) | |
tree | 404f3c882c2c979c7433ab067bc793ae349fac0f /lib/helper.php | |
parent | f4fb6356cd5d9143f59ad41425d74fb35bbe68fd (diff) | |
parent | 203f7a3a870964310060d82bdd61d14eb1613791 (diff) | |
download | nextcloud-server-6e62911a4ebeb16203cf88cd9b62da37b519ed62.tar.gz nextcloud-server-6e62911a4ebeb16203cf88cd9b62da37b519ed62.zip |
Merge branch 'master' of gitorious.org:owncloud/owncloud
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"; } } |