From: hickert Date: Wed, 17 Sep 2008 09:56:18 +0000 (+0000) Subject: Updated workstation startup tab X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=892ba4553c2ed7fe6df2be9249e87376ec7de993;p=gosa.git Updated workstation startup tab -Fixed FAI dependencies. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12496 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc index ef3fa586a..2084bb9a8 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc @@ -61,7 +61,7 @@ class workstartup extends plugin { /* Check if FAI is active */ $tmp= $config->search("faiManagement", "CLASS",array('menu','tabs')); - if(!empty($tmp)){ + if(!empty($tmp) && class_available("faiManagement")){ $this->fai_activated = TRUE; }else{ $this->attributes = array("gotoLdapServer", "gotoBootKernel", "gotoKernelParameters", "gotoShare"); diff --git a/gosa-plugins/goto/admin/systems/goto/workstationStartup.tpl b/gosa-plugins/goto/admin/systems/goto/workstationStartup.tpl index 2d9c5bf17..cd3025fc6 100644 --- a/gosa-plugins/goto/admin/systems/goto/workstationStartup.tpl +++ b/gosa-plugins/goto/admin/systems/goto/workstationStartup.tpl @@ -58,7 +58,9 @@ - {if !$si_active} + {if !$fai_activated} +

{t}FAI Object assignment disabled. You can't use this feature until FAI is activated.{/t}

+ {elseif !$si_active} {t}GOsa support daemon not configured{/t}
{t}FAI settings cannot be modified{/t} {elseif $si_fai_action_failed} @@ -160,11 +162,7 @@ {/render} - {/if} - - {else} - -

{t}FAI Object assignment disabled. You can't use this feature until FAI is activated.{/t}

+ {/if} {/if}