actually return result

This commit is contained in:
Robin Appelman 2013-06-07 00:22:05 +02:00
parent 0470a5ba94
commit 85abede9bf
1 changed files with 2 additions and 2 deletions

View File

@ -377,9 +377,9 @@ class OC_Helper {
}
$extension=strtolower(strrchr(basename($path), "."));
$extension=substr($extension, 1);//remove leading .
$mimeType=(isset(self::$mimetypes[$extension]))?self::$mimetypes[$extension]:'application/octet-stream';
return (isset(self::$mimetypes[$extension]))?self::$mimetypes[$extension]:'application/octet-stream';
}else{
$mimeType='application/octet-stream';
return 'application/octet-stream';
}
}