Code

Renamed post names
[gosa.git] / plugins / admin / systems / class_inventory.inc
index be90e46e18e9c544f3b8b3281298630c3ec8bc71..c0ec0e685226b1e74e493e3d2f6467b168996cc8 100644 (file)
@@ -12,9 +12,9 @@ class inventory extends plugin
   var $attributes= array();
   var $objectclasses= array("whatever");
 
-  function inventory ($config, $dn= NULL)
+  function inventory ($config, $dn= NULL, $parent= NULL)
   {
-    plugin::plugin ($config, $dn);
+    plugin::plugin ($config, $dn, $parent);
   }
 
   function execute()
@@ -33,10 +33,10 @@ class inventory extends plugin
 
     /* Show tab dialog headers */
     if ($this->is_account){
-      $display= $this->show_header(_("Remove DNS service"),
+      $display= $this->show_disable_header(_("Remove DNS service"),
           _("This server has DNS features enabled. You can disable them by clicking below."));
     } else {
-      $display= $this->show_header(_("Add DNS service"),
+      $display= $this->show_enable_header(_("Add DNS service"),
           _("This server has DNS features disabled. You can enable them by clicking below."));
       return ($display);
     }