Code

Fix logging (Trac: #1797)
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 18 Feb 2010 08:19:01 +0000 (08:19 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 18 Feb 2010 08:19:01 +0000 (08:19 +0000)
Replace occurences of config usage with usage of this->config
because otherwise no logging takes place (this->config is initialized
while $config would need to be imported from the global namespace).

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15642 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-core/include/class_log.inc

index bbe31517e228cac1741b3768d6782ddf371138fd..4b846e5722e26f1811178f9ba6aac370a5a51eb7 100644 (file)
@@ -76,7 +76,7 @@ class log {
     $entry['changes']   = $changes;
     $entry['result']    = $result;
 
-    if(!isset($config) || ( $this->config->get_cfg_value("logging") == ""  && empty($entry['user']))){
+    if(!isset($this->config) || ( $this->config->get_cfg_value("logging") == ""  && empty($entry['user']))){
       $entry['user']  = "unknown";
     }
  
@@ -90,7 +90,7 @@ class log {
       
     }else{
 
-      if (isset ($config)){
+      if (isset ($this->config)){
         if ($this->config->get_cfg_value("logging") == ""){
           $this->log_into_syslog($entry);
         }else{