deal with old MS Office mime-times have multiple extensions eg. application/msword uses doc and dot

This commit is contained in:
Ralf Becker 2018-02-15 18:00:04 +01:00
parent 05f7754f0e
commit 146785d57a

View File

@ -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',