Code

Some functions were missing.
[gosa.git] / plugins / admin / systems / class_termDNS.inc
index e5e9c6fdf363ccd1b8d73a15852a41c90676e7b4..ad36377c53174a60260005accfbde831652cb380 100644 (file)
@@ -56,7 +56,7 @@ class termDNS extends plugin
     /* Hide all dns specific code, if dns is not available 
      */
     $DNSenabled = false;
-    foreach($this->config->data['TABS']['SERVTABS'] as $tab){
+    foreach($this->config->data['TABS']['SERVERSERVICE'] as $tab){
       if(preg_match("/^servdns$/",$tab['CLASS'])){
         $this->DNSenabled = true;
       }
@@ -230,7 +230,7 @@ class termDNS extends plugin
     while($attr = $ldap->fetch()){  
       $ldap->cd($attr['dn']);
       $ldap->rmDir($attr['dn']);
-      show_ldap_error("Record:".$ldap->get_error(), _("Removing terminal from DNS object failed")); 
+      show_ldap_error($ldap->get_error(), sprintf(_("Removing of terminal/dns acoount with dn '%s' failed."),$this->dn));
     }
     */
   }
@@ -445,7 +445,7 @@ class termDNS extends plugin
       /* Display errors 
        */
       if($ldap->get_error() != "Success"){
-        show_ldap_error("Record:".$ldap->get_error(), _("Saving terminal to DNS object failed")); 
+        show_ldap_error($ldap->get_error(), sprintf(_("Saving of terminal/dns account with dn '%s' failed."),$this->dn));
       }
     }
   }