From 1e93703eff2d85e23ec2278c828d9cae57684f39 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 8 Feb 2018 14:25:20 +0100 Subject: [PATCH] Change label of excluded mime types in preferences into extension name only --- filemanager/inc/class.filemanager_hooks.inc.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/filemanager/inc/class.filemanager_hooks.inc.php b/filemanager/inc/class.filemanager_hooks.inc.php index 83cd922f26..241cb78bc8 100644 --- a/filemanager/inc/class.filemanager_hooks.inc.php +++ b/filemanager/inc/class.filemanager_hooks.inc.php @@ -235,7 +235,11 @@ class filemanager_hooks ); } $editorLink = self::getEditorLink(); - + $mimes = array(); + foreach ($editorLink['mime'] as $mime => $value) + { + $mimes[$mime] = $value['ext']; + } $settings += array ( 'sections.2' => array( 'type' => 'section', @@ -258,7 +262,7 @@ class filemanager_hooks 'label' => 'Excludes selected mime types', 'help' => 'Excludes selected mime types from being opened by editor', 'name' => 'collab_excluded_mimes', - 'values' => array_combine(array_keys($editorLink['mime']), array_keys($editorLink['mime'])), + 'values' => $mimes, 'default' => '', ), 'merge_open_handler' => array(