From 111b278fe0d15fd1eccf44048cb4a0643b5ffc49 Mon Sep 17 00:00:00 2001 From: thomascube Date: Sat, 20 Oct 2007 21:47:11 +0000 Subject: Disable HTML the editor by default --- program/steps/settings/func.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program/steps/settings') diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index 18e8e523d..32eb0c5bd 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -37,7 +37,7 @@ function rcmail_user_prefs_form($attrib) { global $DB, $CONFIG, $sess_user_lang; - $no_override = is_array($CONFIG['dont_override']) ? array_flip($CONFIG['dont_override']) : array(); + $no_override = !empty($CONFIG['dont_override']) ? array_flip((array)$CONFIG['dont_override']) : array('preview_pane'=>true); // add some labels to client rcube_add_label('nopagesizewarning'); @@ -161,7 +161,7 @@ function rcmail_user_prefs_form($attrib) } // Show checkbox for HTML Editor - if (!isset($no_override['htmleditor'])) + if (!isset($no_override['htmleditor']) && $CONFIG['enable_htmleditor']) { $field_id = 'rcmfd_htmleditor'; $input_htmleditor = new checkbox(array('name' => '_htmleditor', 'id' => $field_id, 'value' => 1)); -- cgit v1.2.3