Code

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

gosa-core/plugins/admin/users/class_userManagement.inc

index 217e391d3191d919194187064217c821b5dadd22..9665ff458e6a5cb894ec32834a4d482343d462a2 100644 (file)
@@ -69,7 +69,7 @@ class userManagement extends management
     if ($this->config->boolValueIsTrue("main", "copyPaste")){
       $this->cpHandler = new CopyPasteHandler($this->config);
     }
-    if($this->config->get_cfg_value("enableSnapshots") == "true"){
+    if($this->config->get_cfg_value("core","enableSnapshots") == "true"){
       $this->snapHandler = new SnapshotHandler($this->config);
     }
 
@@ -267,8 +267,8 @@ class userManagement extends management
           return($smarty->fetch(get_template_path('password.tpl', TRUE)));
         }
       }
-      if ($this->config->get_cfg_value("passwordHook") != ""){
-        exec($this->config->get_cfg_value("passwordHook")." ".$username." ".$_POST['new_password'], $resarr);
+      if ($this->config->get_cfg_value("core","passwordHook") != ""){
+        exec($this->config->get_cfg_value("core","passwordHook")." ".$username." ".$_POST['new_password'], $resarr);
       }
       new log("modify","users/".get_class($this),$this->dn,array(),"Password has been changed");
       $this->dn ="";
@@ -472,8 +472,8 @@ class userManagement extends management
 
         // Preset uid field by using the idGenerator 
         $attributes= array('sn' => $this->sn, 'givenName' => $this->givenName);
-        if ($this->config->get_cfg_value("idGenerator") != ""){
-          $uids= gen_uids ($this->config->get_cfg_value("idGenerator"), $attributes);
+        if ($this->config->get_cfg_value("core","idGenerator") != ""){
+          $uids= gen_uids ($this->config->get_cfg_value("core","idGenerator"), $attributes);
           if (count($uids)){
             $smarty->assign("edit_uid", "false");
             $smarty->assign("uids", $uids);