Code

Added property class to get_cfg_requests
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 May 2010 10:05:49 +0000 (10:05 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 May 2010 10:05:49 +0000 (10:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18137 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_gosaSupportDaemon.inc

index bcb62fd9ecc4f906d09a716608d43a2e75deb082..2c832a6e79dfb508812e38627a5a3d3acdfa40ac 100644 (file)
@@ -62,7 +62,7 @@ class gosaSupportDaemon
 
     // Detect timeout 
     if($timeout == null){
-      $timeout = $config->get_cfg_value("gosaSupportTimeout",15);
+      $timeout = $config->get_cfg_value("core","gosaSupportTimeout",15);
     }
 
     /* This should only be the case if we call this from setup.
@@ -71,12 +71,12 @@ class gosaSupportDaemon
     if(!is_object($config)) { return; }
 
     # load from config, store statically
-    if ($config->get_cfg_value("gosaSupportURI") != ""){
+    if ($config->get_cfg_value("core","gosaSupportURI") != ""){
 
       if ($this->s_host == ""){
-        $this->s_host= preg_replace("/^.*@([^:]+):.*$/", "$1", $config->get_cfg_value("gosaSupportURI"));
-        $this->i_port= preg_replace("/^.*@[^:]+:(.*)$/", "$1", $config->get_cfg_value("gosaSupportURI"));
-        $this->s_encryption_key = preg_replace("/^(.*)@[^:]+:.*$/", "$1", $config->get_cfg_value("gosaSupportURI"));
+        $this->s_host= preg_replace("/^.*@([^:]+):.*$/", "$1", $config->get_cfg_value("core","gosaSupportURI"));
+        $this->i_port= preg_replace("/^.*@[^:]+:(.*)$/", "$1", $config->get_cfg_value("core","gosaSupportURI"));
+        $this->s_encryption_key = preg_replace("/^(.*)@[^:]+:.*$/", "$1", $config->get_cfg_value("core","gosaSupportURI"));
       }
       $this->is_configured = TRUE;
       $this->f_timeout = $timeout;