From 82bbd375124c2996d857c4d52a8e87a39261f24a Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 24 Jul 2008 11:52:41 +0000 Subject: [PATCH] Migrated class_log git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12013 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_log.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gosa-core/include/class_log.inc b/gosa-core/include/class_log.inc index fa4482e6b..24a642580 100644 --- a/gosa-core/include/class_log.inc +++ b/gosa-core/include/class_log.inc @@ -76,7 +76,7 @@ class log { $entry['changes'] = $changes; $entry['result'] = $result; - if(!isset($this->config->current['LOGGING']) && empty($entry['user'])){ + if($this->config->get_cfg_value("logging") == "" && empty($entry['user'])){ $entry['user'] = "unknown"; } @@ -90,15 +90,15 @@ class log { }else{ - if(!isset($this->config->current['LOGGING'])){ + if ($this->conifg->get_cfg_value("logging") == ""){ $this->log_into_syslog($entry); }else{ /* Start logging for configured methods */ - if(isset($this->config->current['LOGGING']) && preg_match("/(^|,)syslog(,|$)/i",$this->config->current['LOGGING'])){ + if(preg_match("/(^|,)syslog(,|$)/i",$this->config->get_cfg_value("logging"))){ $this->log_into_syslog($entry); } - if(isset($this->config->current['LOGGING']) && preg_match("/(^|,)mysql(,|$)/i",$this->config->current['LOGGING'])){ + if(preg_match("/(^|,)mysql(,|$)/i",$this->config->get_cfg_value("logging"))){ $this->log_into_db($entry); } } -- 2.30.2