diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-10-08 21:18:47 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-10-13 16:33:39 +0200 |
commit | d7fa2a0f7770acb36c49ea60348bb583e53b04e7 (patch) | |
tree | 8bbbc87c3b5c03944ed7605543ebcb796d96f274 /lib/helper.php | |
parent | 8da00e2d9aef5b77832a8d05a87c6b7cfbc5940a (diff) | |
download | nextcloud-server-d7fa2a0f7770acb36c49ea60348bb583e53b04e7.tar.gz nextcloud-server-d7fa2a0f7770acb36c49ea60348bb583e53b04e7.zip |
mimetype icon improvements
Diffstat (limited to 'lib/helper.php')
-rw-r--r-- | lib/helper.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/helper.php b/lib/helper.php index c2a81ba3306..5b3e394cafd 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -96,6 +96,12 @@ class OC_Helper { * Returns the path to the image of this file type. */ public static function mimetypeIcon( $mimetype ){ + $alias=array('application/xml'=>'code/xml'); +// echo $mimetype; + if(isset($alias[$mimetype])){ + $mimetype=$alias[$mimetype]; +// echo $mimetype; + } // Replace slash with a minus $mimetype = str_replace( "/", "-", $mimetype ); |