index c6ce4dacf93e512be0409d9489ce75c44c781f07..e8aab5c950b690ff5168734b9808ba66bf899f6e 100644 (file)
"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();
foreach (array("options", "statements") as $type){
$this->advanced->$type= $this->$type + $this->network->$type;
}
-
$display.= $this->advanced->execute();
/* Merge back for removals */
/* 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.");