X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fsetup%2Fclass_setupStep_Config2.inc;h=1bf1d2ff5c13f3d81c4a7dbced193141a828edfb;hb=7d0eab6bb81d3010130879061ea00542071f5b76;hp=2ec4ede3349fdad879f48aaad3b8508a57c23610;hpb=50391f724fda4927c3cb0696ad25d98558ea9962;p=gosa.git diff --git a/gosa-core/setup/class_setupStep_Config2.inc b/gosa-core/setup/class_setupStep_Config2.inc index 2ec4ede33..1bf1d2ff5 100644 --- a/gosa-core/setup/class_setupStep_Config2.inc +++ b/gosa-core/setup/class_setupStep_Config2.inc @@ -40,7 +40,7 @@ class Step_Config2 extends setup_step "snapshot_base" => "ou=snapshots,%base%", "snapshot_user" => "%admin%", "snapshot_password" => "", - "logging" => "syslog,mysql", + "logging" => TRUE, "snapshot_server" => "%connection%"); var $samba_settings = array( "samba_sid" => "0-815-4711", @@ -131,8 +131,7 @@ class Step_Config2 extends setup_step $smarty->assign("mail_methods", reverse_html_entities($this->mail_methods)); $smarty->assign("samba_settings", reverse_html_entities($this->samba_settings)); - $smarty->assign("logging_mysql" ,preg_match("/mysql/",$this->generic_settings['logging'])); - $smarty->assign("logging_syslog",preg_match("/syslog/",$this->generic_settings['logging'])); + $smarty->assign("logging",$this->generic_settings['logging']); $smarty->assign("bool",array(FALSE => _("No"), TRUE => _("Yes"))); foreach($this->attributes as $attr){ @@ -161,14 +160,7 @@ class Step_Config2 extends setup_step } /* Get logging */ - $logging = ""; - if(isset($_POST['logging_syslog'])){ - $logging.= "syslog,"; - } - if(isset($_POST['logging_mysql'])){ - $logging.= "mysql,"; - } - $this->generic_settings['logging'] = trim($logging,","); + $this->generic_settings['logging'] = isset($_POST['logging']); /* Mail settings */ if(isset($_POST['vacationdir_active'])){