From: cajus Date: Thu, 20 Apr 2006 10:47:43 +0000 (+0000) Subject: Fixed kernel box X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=53ef0ea62cee0591f7511286a4e37402dfaeef3c;p=gosa.git Fixed kernel box git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3068 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/index.php b/html/index.php index d50359b2e..774043404 100644 --- a/html/index.php +++ b/html/index.php @@ -44,7 +44,7 @@ if(isset($_POST['javascript']) && $_POST['javascript'] == "true") { $_SESSION['js']= FALSE; } -/* Check if gosa.conf is accessable */ +/* Check if gosa.conf is accessible */ if (!is_readable(CONFIG_DIR."/gosa.conf")){ print_red(sprintf(_("GOsa configuration %s/gosa.conf is not readable. Aborted."), CONFIG_DIR)); echo $_SESSION['errors']; @@ -68,7 +68,7 @@ $smarty->assign ('nextfield', 'username'); /* Check for compile directory */ if (!(is_dir($smarty->compile_dir) && is_writable($smarty->compile_dir))){ - print_red(sprintf(_("Directory '%s' specified as compile directory is not accessable!"), + print_red(sprintf(_("Directory '%s' specified as compile directory is not accessible!"), $smarty->compile_dir)); echo $_SESSION['errors']; exit(); diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index 45b041b55..fc875774d 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -17,7 +17,7 @@ class workstartup extends plugin var $gotoFilesystem = array(); var $gotoTerminalPath = ""; var $FAIstatus = ""; - var $gotoBootKernels = array("default" => "default"); + var $gotoBootKernels = array(); /* attribute list for save action */ var $attributes = array("gotoLdapServer", "gotoBootKernel", "gotoKernelParameters", "FAIclass", "FAIstatus", "gotoShare","FAIdebianMirror", "FAIrelease"); @@ -221,6 +221,9 @@ class workstartup extends plugin $this->orig_dn= $this->dn; + /* Handle inheritance value "default" */ + $this->gotoBootKernels= array("%default%" => '['._("inherited").']'); + /* Get list of boot kernels */ if (isset($this->config->data['TABS'])){ $command= search_config($this->config->data['TABS'], get_class($this), "KERNELS"); @@ -875,7 +878,10 @@ class workstartup extends plugin } /* Strip out 'default' values */ if ($this->attrs['gotoLdapServer'] == "default"){ - unset ($this->attrs['gotoLdapServer']); + $this->attrs['gotoLdapServer']= array(); + } + if ($this->attrs['gotoBootKernel'] == "%default%"){ + $this->attrs['gotoBootKernel']= array(); } /* if mirror == none stop saving this attribute */