From: hickert Date: Wed, 23 Jan 2008 09:57:45 +0000 (+0000) Subject: Updated tempalte download X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=147c6be2982aa5c88c6245df6a25e7f5f203477e;p=gosa.git Updated tempalte download git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8556 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc b/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc index a0734aa6a..869cb1f0b 100644 --- a/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc +++ b/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc @@ -91,7 +91,12 @@ class faiTemplateEntry extends plugin session::set('binaryfile',basename($this->FAItemplatePath)); } } - + + /* File download requested */ + if(isset($_GET['getFAItemplate'])){ + send_binary_content($this->FAItemplateFile,$this->cn.".FAItemplate"); + } + $status= _("no file uploaded yet"); $bStatus = false; // Hide download icon on default diff --git a/gosa-plugins/fai/admin/fai/faiTemplateEntry.tpl b/gosa-plugins/fai/admin/fai/faiTemplateEntry.tpl index b8ee41a61..05f7c56a3 100644 --- a/gosa-plugins/fai/admin/fai/faiTemplateEntry.tpl +++ b/gosa-plugins/fai/admin/fai/faiTemplateEntry.tpl @@ -56,7 +56,7 @@ {$status} {if $bStatus} - + {t}Save template{/t}... {/if}