summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 08f7a23)
raw | patch | inline | side by side (parent: 08f7a23)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 17 Sep 2008 09:56:18 +0000 (09:56 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 17 Sep 2008 09:56:18 +0000 (09:56 +0000) |
-Fixed FAI dependencies.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12496 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12496 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc | patch | blob | history | |
gosa-plugins/goto/admin/systems/goto/workstationStartup.tpl | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc
index ef3fa586a94c316aa6bf02ea7e7b25503d93ca30..2084bb9a851273adf6e02b01c1fa1ed2a3fb228b 100644 (file)
{
/* 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 2d9c5bf17de02a3ace6a7b671f4266440f7b428e..cd3025fc63585f970313726addc3ea69cc2b7cb5 100644 (file)
<td style="vertical-align:top;">
- {if !$si_active}
+ {if !$fai_activated}
+ <h2>{t}FAI Object assignment disabled. You can't use this feature until FAI is activated.{/t}</h2>
+ {elseif !$si_active}
<b>{t}GOsa support daemon not configured{/t}</b><br>
{t}FAI settings cannot be modified{/t}
{elseif $si_fai_action_failed}
<input name="AddClass" value="{msgPool type=addButton}" type="submit">
{/render}
<!-- <input name="DelClass" value="{msgPool type=delButton}" type="submit"> -->
- {/if}
-
- {else}
-
- <h2>{t}FAI Object assignment disabled. You can't use this feature until FAI is activated.{/t}</h2>
+ {/if}
{/if}
</td>