mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
"downloading word2003 mergeprint files (application/xml) as application/msword, to open it automatically in word or oowriter"
This commit is contained in:
parent
1052fffbba
commit
86d9470719
@ -582,6 +582,10 @@ abstract class bo_merge
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($mimetype == 'application/xml' && strpos($merged,'<?mso-application progid="Word.Document"?>') !== false)
|
||||
{
|
||||
$mimetype = 'application/msword'; // to open it automatically in word or oowriter
|
||||
}
|
||||
ExecMethod2('phpgwapi.browser.content_header',basename($document),$mimetype);
|
||||
echo $merged;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user