Change label of excluded mime types in preferences into extension name only

This commit is contained in:
Hadi Nategh 2018-02-08 14:25:20 +01:00
parent 9d5ddc84e2
commit 1e93703eff

View File

@ -235,7 +235,11 @@ class filemanager_hooks
); );
} }
$editorLink = self::getEditorLink(); $editorLink = self::getEditorLink();
$mimes = array();
foreach ($editorLink['mime'] as $mime => $value)
{
$mimes[$mime] = $value['ext'];
}
$settings += array ( $settings += array (
'sections.2' => array( 'sections.2' => array(
'type' => 'section', 'type' => 'section',
@ -258,7 +262,7 @@ class filemanager_hooks
'label' => 'Excludes selected mime types', 'label' => 'Excludes selected mime types',
'help' => 'Excludes selected mime types from being opened by editor', 'help' => 'Excludes selected mime types from being opened by editor',
'name' => 'collab_excluded_mimes', 'name' => 'collab_excluded_mimes',
'values' => array_combine(array_keys($editorLink['mime']), array_keys($editorLink['mime'])), 'values' => $mimes,
'default' => '', 'default' => '',
), ),
'merge_open_handler' => array( 'merge_open_handler' => array(