Code

Updated workstation - Startup
[gosa.git] / plugins / admin / systems / class_dhcpHost.inc
index 13d0024284e1671034b17a35814c7e3cd755fa60..e8aab5c950b690ff5168734b9808ba66bf899f6e 100644 (file)
@@ -63,7 +63,7 @@ class dhcpHost extends dhcpPlugin
           "fddi" => _("FDDI"),
           "token-ring" => _("Token Ring")));
     /* Show main page */
-    $display= $smarty->fetch(get_template_path('dhcp_host.tpl', TRUE)).$this->network->execute();
+    $display= $smarty->fetch(get_template_path('dhcp_host.tpl', TRUE,dirname(__FILE__))).$this->network->execute();
 
     /* Merge arrays for advanced view */
     $this->fix_options();
@@ -123,10 +123,15 @@ class dhcpHost extends dhcpPlugin
 
 
   /* Check values */
-  function check($cache)
+  function check()
   {
     $message= array();
 
+    $cache = array();
+    if(isset($this->parent)){
+      $cache = $this->parent->dhcpObjectCache;
+    }
+  
     /* All required fields are set? */
     if ($this->cn == ""){
       $message[]= _("Required field 'Name' is not filled.");