summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorGeorg Ehrke <georg.stefan.germany@googlemail.com>2011-10-13 21:59:16 +0200
committerGeorg Ehrke <georg.stefan.germany@googlemail.com>2011-10-13 21:59:16 +0200
commita01d10e57db1893939d0a7706fad239df537e24b (patch)
tree3649dab6d0006981225f88574b26447f9fbeac1f /lib/helper.php
parent4cbae823eb742fac80288c6c74acba26e0a9c5d6 (diff)
parentdb2fb38746bb9d89b402c3a768a247945d813989 (diff)
downloadnextcloud-server-a01d10e57db1893939d0a7706fad239df537e24b.tar.gz
nextcloud-server-a01d10e57db1893939d0a7706fad239df537e24b.zip
Merge branch 'master' into calendar
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php6
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 );