forked from extern/egroupware
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