From: hickert Date: Wed, 5 Nov 2008 09:09:16 +0000 (+0000) Subject: Updated template upload, fixed tempalte path and file preset X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=493edf88440dbacc6d1fbaadf47d2b94beb9f1ac;p=gosa.git Updated template upload, fixed tempalte path and file preset git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12917 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 76b4312b1..0fea63c2c 100644 --- a/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc +++ b/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc @@ -188,9 +188,10 @@ class faiTemplateEntry extends plugin if($this->acl_is_writeable("cn")){ $cur_path = dirname($cur_path).'/'.get_post('templateFile'); } - if(!isset($_POST['TmpFileUpload'])){ - $this->FAItemplatePath = $this->cn= $cur_path; + if(trim($cur_path,"/") == ""){ + $cur_path= ""; } + $this->FAItemplatePath = $this->cn= $cur_path; } }