mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
mime, not mine
This commit is contained in:
parent
fd68a4eddc
commit
6d5de5038e
@ -253,7 +253,7 @@
|
||||
function content_header($fn='',$mime='',$length='',$nocache=True)
|
||||
{
|
||||
// if no mine-type is given or it's the default binary-type, guess it from the extension
|
||||
if(empty($mine) || $mime == 'application/octet-stream')
|
||||
if(empty($mime) || $mime == 'application/octet-stream')
|
||||
{
|
||||
$mime_magic = createObject('phpgwapi.mime_magic');
|
||||
$mime = $mime_magic->filename2mine($fn);
|
||||
|
Loading…
Reference in New Issue
Block a user