summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-03-19 12:41:10 +0100
committerGeorg Ehrke <dev@georgswebsite.de>2012-03-19 12:42:33 +0100
commitfa104fee17b36e619792599ab7fb921f95285833 (patch)
tree6eb23095c2f74a2651c7b9784ca9a84bd271d6b9 /lib/helper.php
parentb13ab2b17eb485aec13c7fb1e88e25e1c9901d72 (diff)
downloadnextcloud-server-fa104fee17b36e619792599ab7fb921f95285833.tar.gz
nextcloud-server-fa104fee17b36e619792599ab7fb921f95285833.zip
fix mimetype detection
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 0c6c73aa76b..75942f092cf 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -284,9 +284,7 @@ class OC_Helper {
$isWrapped=(strpos($path,'://')!==false) and (substr($path,0,7)=='file://');
$mimeType='application/octet-stream';
if ($mimeType=='application/octet-stream') {
- if(count(self::$mimetypes)>0){
- self::$mimetypes = include('mimetypes.fixlist.php');
- }
+ self::$mimetypes = include('mimetypes.fixlist.php');
$extention=strtolower(strrchr(basename($path), "."));
$extention=substr($extention,1);//remove leading .
$mimeType=(isset(self::$mimetypes[$extention]))?self::$mimetypes[$extention]:'application/octet-stream';