mirror of
https://github.com/nextcloud/server.git
synced 2026-03-28 05:13:57 -04:00
actually return result
This commit is contained in:
parent
0470a5ba94
commit
85abede9bf
1 changed files with 2 additions and 2 deletions
|
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue