Code

Added translation from TRUe/yes to true False/no to false
[gosa.git] / include / class_config.inc
index 6aa0277886795d0f9b4199f8287000500a6e4527..b79df2426fb5b024e98e0224029ba8fd9a656748 100644 (file)
@@ -91,9 +91,19 @@ class config  {
       return;
     }
 
+    /* yes/no to true/false and upper case TRUE to true and so on*/
+    foreach($attrs as $name => $value){
+      if((preg_match("/^yes$/i",$value)) || (preg_match("/^true$/i",$value))){
+        $attrs[$name] = "true";
+      }elseif((preg_match("/^no$/i",$value)) || (preg_match("/^false$/i",$value))){
+        $attrs[$name] = "false";
+      } 
+    }
+
     /* Look through attributes */
     switch ($this->tags[$this->level-1]){
 
+
       /* Handle tab section */
       case 'TAB':      $name= $this->tags[$this->level-2];