From 42aa383cd47c2eabfd654fb4213c0c8fc56ced4e Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 29 Apr 2021 15:20:00 -0600 Subject: [PATCH] Add Collabora UI preference --- .../inc/class.filemanager_hooks.inc.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/filemanager/inc/class.filemanager_hooks.inc.php b/filemanager/inc/class.filemanager_hooks.inc.php index 201fd32a15..ddc01f6125 100644 --- a/filemanager/inc/class.filemanager_hooks.inc.php +++ b/filemanager/inc/class.filemanager_hooks.inc.php @@ -262,6 +262,25 @@ class filemanager_hooks ) ); + if($GLOBALS['egw_info']['user']['apps']['collabora']) + { + $settings += array( + 'sections.collabora' => array( + 'type' => 'section', + 'title' => lang('Collabora'), + 'no_lang'=> true, + 'xmlrpc' => False, + 'admin' => False + ), + 'ui_mode' => array( + 'type' => 'select', + 'label' => lang('UI mode'), + 'name' => 'ui_mode', + 'values' => ['classic','notebookbar'], + 'default' => 'notebookbar' + ) + ); + } return $settings; }