From 493edf88440dbacc6d1fbaadf47d2b94beb9f1ac Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 5 Nov 2008 09:09:16 +0000 Subject: [PATCH] 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 --- gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } } -- 2.30.2