mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
deal with old MS Office mime-times have multiple extensions eg. application/msword uses doc and dot
This commit is contained in:
parent
05f7754f0e
commit
146785d57a
@ -238,8 +238,14 @@ class filemanager_hooks
|
||||
$mimes = array();
|
||||
foreach ($editorLink['mime'] as $mime => $value)
|
||||
{
|
||||
$mimes[$mime] = $value['ext'];
|
||||
$mimes[$mime] = lang('%1 file', strtoupper($value['ext'])).' ('.$mime.')';
|
||||
|
||||
if (!empty($value['extra_extensions']))
|
||||
{
|
||||
$mimes[$mime] .= ', '.strtoupper(implode(', ', $value['extra_extensions']));
|
||||
}
|
||||
}
|
||||
asort($mimes);
|
||||
$settings += array (
|
||||
'sections.2' => array(
|
||||
'type' => 'section',
|
||||
|
Loading…
Reference in New Issue
Block a user