diff --git a/plugins/admin/systems/class_winGeneric.inc b/plugins/admin/systems/class_winGeneric.inc
index cbabc12ae1cd406a6d13821a8dd046eabd9ff898..ef279f3ab20351aa809392b7a04f8e4c51a9bdad 100644 (file)
function wingeneric (&$config, $dn= NULL, $parent= NULL)
{
plugin::plugin ($config, $dn, $parent);
- $this->netConfigDNS = new termDNS($this->config,$this->dn,$this->objectclasses);
+ $this->netConfigDNS = new termDNS($this->config,$this,$this->objectclasses);
/* Set base */
if ($this->dn == "new"){
$ui= get_userinfo();
/* Do we represent a valid phone? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
_("This 'dn' has no network features.")."</b>";
return($display);
$smarty->assign("base_select", $this->base);
/* Show main page */
- $smarty->assign("netconfig", $this->netConfigDNS->execute());
+ $str = $this->netConfigDNS->execute();
+ if(is_object($this->netConfigDNS->dialog)){
+ return($str);
+ }
+ $smarty->assign("netconfig", $str);
return($smarty->fetch (get_template_path('wingeneric.tpl', TRUE)));
}
}
$this->netConfigDNS->cn = preg_replace("/\\\$\$/","",$this->cn);
- $this->netConfigDNS->save($this->dn);
+ $this->netConfigDNS->save();
show_ldap_error($ldap->get_error(), sprintf(_("Saving of system wingeneric/generic with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */