Code

Updated server to hide gosa-si actions until the gosaSupportURI is defined.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jan 2012 09:48:59 +0000 (09:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jan 2012 09:48:59 +0000 (09:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@21099 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_servGeneric.inc
gosa-plugins/systems/admin/systems/server.tpl

index b2fcb6131ee403bf374ba07d77a51056e43cfd1b..a4630ba97af39c80a08756fde2918d8f897dc942 100644 (file)
@@ -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)){
index bb530c414ee761829883f2a5ef690d5a1f242265..f34d9faf5778c39854b2a7d9c2f5db45f2c843b6 100644 (file)
@@ -51,7 +51,7 @@
 
 {$netconfig}
 
-{if $fai_activated}
+{if $fai_activated && $si_activated}
 <p class="plugbottom" style="margin-bottom:0px; padding:0px;">&nbsp;</p>
 
 <h2><img class="center" alt="" align="middle" src="images/rocket.png"> {t}Action{/t}</h2>