From ab9e549d38b425053fba848732d9d9f8aaf816f4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 16 Jun 2010 08:57:40 +0000 Subject: [PATCH] always enable history logging for calendar, addressbook and infolog --- setup/inc/class.setup_process.inc.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/setup/inc/class.setup_process.inc.php b/setup/inc/class.setup_process.inc.php index c14911cb10..94dd40a2fc 100755 --- a/setup/inc/class.setup_process.inc.php +++ b/setup/inc/class.setup_process.inc.php @@ -258,6 +258,18 @@ class setup_process } // always enable spellchecker, ckeditor now uses spell-as-you-type via a public webservice $current_config['enabled_spellcheck'] = 'True'; + + // always enable history logging for calendar, addressbook and infolog + $current_config['history'] = 'history'; // addressbook: only admin + $current_config['calendar_delete_history'] = 'history'; // only admins + // infolog does NOT use config_app='phpgwapi', but 'infolog' + $GLOBALS['egw_setup']->db->insert($GLOBALS['egw_setup']->config_table,array( + 'config_value' => 'history_admin_delete', // only admins + ),array( + 'config_app' => 'infolog', + 'config_name' => 'history', + ),__FILE__,__LINE__); + // RalfBecker: php.net recommend this for security reasons, it should be our default too $current_config['usecookies'] = 'True';