From 7a7a44de9b9b63616f8ff44161f763b2ccde8832 Mon Sep 17 00:00:00 2001 From: Prasath Mani Date: Fri, 6 Dec 2019 16:26:36 +0530 Subject: [PATCH] Open document files? #262 --- tinyfilemanager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 70aa781..238f96f 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -2507,6 +2507,7 @@ function fm_get_file_icon_class($path) break; case 'xls': case 'xlsx': + case 'ods': $img = 'fa fa-file-excel-o'; break; case 'csv': @@ -2517,6 +2518,7 @@ function fm_get_file_icon_class($path) break; case 'doc': case 'docx': + case 'odt': $img = 'fa fa-file-word-o'; break; case 'ppt': @@ -2633,7 +2635,7 @@ function fm_get_text_names() */ function fm_get_onlineViewer_exts() { - return array('doc', 'docx', 'xls', 'xlsx', 'pdf', 'ppt', 'pptx', 'ai', 'psd', 'dxf', 'xps', 'rar'); + return array('doc', 'docx', 'xls', 'xlsx', 'pdf', 'ppt', 'pptx', 'ai', 'psd', 'dxf', 'xps', 'rar', 'odt', 'ods'); } /**