X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fadmin%2Facl%2Fclass_acl.inc;h=cf904605e1f9d06dd4dc47bb2f497f405258102c;hb=40fc655fc551f57d6463e4265ce39e72ebbc1132;hp=bbfdefc4ba027ef02c1c16c384b36b0386e49f7f;hpb=bd20d305bccc10ff35aa3f8591286e8991bede28;p=gosa.git diff --git a/plugins/admin/acl/class_acl.inc b/plugins/admin/acl/class_acl.inc index bbfdefc4b..cf904605e 100644 --- a/plugins/admin/acl/class_acl.inc +++ b/plugins/admin/acl/class_acl.inc @@ -139,6 +139,7 @@ class acl extends plugin /* Handle posts */ if (isset($_POST['new_acl'])){ $this->dialogState= 'create'; + $this->dialog= TRUE; $this->currentIndex= count($this->gosaAclEntry); $this->loadAclEntry(TRUE); } @@ -150,6 +151,7 @@ class acl extends plugin /* Actions... */ if (preg_match('/^acl_edit_.*_x/', $name)){ $this->dialogState= 'create'; + $this->dialog= TRUE; $this->currentIndex= preg_replace('/^acl_edit_([0-9]+).*$/', '\1', $name); $this->loadAclEntry(); continue; @@ -228,6 +230,7 @@ class acl extends plugin /* Cancel new acl? */ if (isset($_POST['cancel_new_acl'])){ $this->dialogState= 'head'; + $this->dialog= FALSE; if ($this->wasNewEntry){ unset ($this->gosaAclEntry[$this->currentIndex]); } @@ -239,6 +242,7 @@ class acl extends plugin $this->gosaAclEntry[$this->currentIndex]['members']= $this->recipients; $this->gosaAclEntry[$this->currentIndex]['acl']= $this->aclContents; $this->dialogState= 'head'; + $this->dialog= FALSE; } /* Cancel edit acl? */ @@ -400,7 +404,7 @@ class acl extends plugin /* Show main page */ $smarty->assign("dialogState", $this->dialogState); - return ($smarty->fetch (get_template_path('contents.tpl', TRUE))); + return ($smarty->fetch (get_template_path('contents.tpl', TRUE, get_base_dir().'/plugins/admin/acl'))); }