From: cajus Date: Thu, 24 Jul 2008 11:48:17 +0000 (+0000) Subject: Migrated class_ldap to get_cfg_value X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=86971209179fda8e85bbcdacaabdd620eef35fd3;p=gosa.git Migrated class_ldap to get_cfg_value git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12012 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_ldap.inc b/gosa-core/include/class_ldap.inc index 6af377218..1aaa8e800 100644 --- a/gosa-core/include/class_ldap.inc +++ b/gosa-core/include/class_ldap.inc @@ -60,8 +60,8 @@ class LDAP{ $this->hostname=$hostname; /* Check if MAX_LDAP_QUERY_TIME is defined */ - if(isset($config->data['MAIN']['MAX_LDAP_QUERY_TIME'])){ - $str = $config->data['MAIN']['MAX_LDAP_QUERY_TIME']; + if($config->get_cfg_value("max_ldap_query_time") != ""){ + $str = $config->get_cfg_value("max_ldap_query_time"); $this->max_ldap_query_time = (float)($str); } @@ -1195,7 +1195,7 @@ class LDAP{ /* Only read schema if it is allowed */ if(isset($config) && preg_match("/config/i",get_class($config))){ - if(!isset($config->data['MAIN']['SCHEMA_CHECK']) || !preg_match("/true/i",$config->data['MAIN']['SCHEMA_CHECK'])){ + if ($config->get_cfg_value("schema_check") != "true"){ return($objectclasses); } }