summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8697120)
raw | patch | inline | side by side (parent: 8697120)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Jul 2008 11:52:41 +0000 (11:52 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Jul 2008 11:52:41 +0000 (11:52 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12013 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_log.inc | patch | blob | history |
index fa4482e6b3b97ad794f8abde63e86ee546fb8179..24a64258027c895eb175f5e8dd7e36c82c53b6e0 100644 (file)
$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";
}
}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);
}
}