From: hickert Date: Thu, 12 Jan 2012 09:48:59 +0000 (+0000) Subject: Updated server to hide gosa-si actions until the gosaSupportURI is defined. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f4bdeefba8b04abdb0ff069c8c99d8661f9423c7;p=gosa.git Updated server to hide gosa-si actions until the gosaSupportURI is defined. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@21099 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_servGeneric.inc b/gosa-plugins/systems/admin/systems/class_servGeneric.inc index b2fcb6131..a4630ba97 100644 --- a/gosa-plugins/systems/admin/systems/class_servGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_servGeneric.inc @@ -221,6 +221,8 @@ class servgeneric extends plugin /* Show main page */ $smarty->assign("fai_activated",$this->fai_activated); + $si_url = $this->config->get_cfg_value("gosaSupportURI"); + $smarty->assign("si_activated",!empty($si_url)); $str = $this->netConfigDNS->execute(); if(is_object($this->netConfigDNS->dialog)){ diff --git a/gosa-plugins/systems/admin/systems/server.tpl b/gosa-plugins/systems/admin/systems/server.tpl index bb530c414..f34d9faf5 100644 --- a/gosa-plugins/systems/admin/systems/server.tpl +++ b/gosa-plugins/systems/admin/systems/server.tpl @@ -51,7 +51,7 @@ {$netconfig} -{if $fai_activated} +{if $fai_activated && $si_activated}

 

{t}Action{/t}