Code

Migrated group management
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Jul 2008 16:05:48 +0000 (16:05 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Jul 2008 16:05:48 +0000 (16:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12035 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/groups/class_groupManagement.inc

index d251ab79fe37e24090d4738cefb24b1acaa865ab..38ff24b241628f7977fe4e01d73b973621ef1aad 100644 (file)
@@ -44,16 +44,13 @@ class groupManagement extends plugin
     $this->ui     = &$ui;
 
     /* Copy & Paste enabled ?*/
-    if((isset($this->config->data['MAIN']['ENABLECOPYPASTE']))&&(preg_match("/true/i",$this->config->data['MAIN']['ENABLECOPYPASTE']))){
+    if($this->config->get_value("enablecopypaste") == "true"){
       $this->CopyPasteHandler = new CopyPasteHandler($this->config);
     }
     
     /* Detect if we have to display the primary group checkbox */
     $tmp = "";
-    if (isset($this->config->data['MAIN']['NOPRIMARYGROUP'])){
-      $tmp = $this->config->data['MAIN']['NOPRIMARYGROUP'];
-    }
-    if(preg_match("/true/i",$tmp)|| (preg_match("/yes/",$tmp))){ 
+    if ($this->config->get_cfg_value("noprimarygroup") == "true"){
       $this->ShowPrimaryCheckBox = false;
     } else {
       $this->ShowPrimaryCheckBox = true;
@@ -632,7 +629,7 @@ class groupManagement extends plugin
     }
 
     $sfilter= "";
-    if ($this->config->current['SAMBAVERSION'] == 3){
+    if ($this->config->get_cfg_value("sambaversion") == 3){
       if (!$ShowPrimaryGroups){
         $sfilter= "(objectClass=sambaGroupMapping)";
       } elseif ($ShowSambaGroups){