X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_tabs.inc;h=8e2d42ca4861c77d3dd7305f14edb0c3610c4ce8;hb=c71ce4ba7b5e4492c62bf2f1af27e202f28ed299;hp=c71fa94920e3988584c1371a0642647d7e7d1145;hpb=1a1cd62339c5c255de11b0d5b78649e067e7bc34;p=gosa.git diff --git a/include/class_tabs.inc b/include/class_tabs.inc index c71fa9492..8e2d42ca4 100644 --- a/include/class_tabs.inc +++ b/include/class_tabs.inc @@ -175,15 +175,8 @@ class tabs function set_acl($acl) { - /* Set local acl */ - $this->acl= $acl; - - /* Setup for all plugins */ - foreach ($this->by_object as $key => $obj){ - $sacl= get_module_permission($acl, "$key", $this->dn); - $obj->acl= $sacl; - $this->by_object[$key]= $obj; - } + /* Look for attribute in ACL */ + trigger_error("Don't use tabs::set_acl() its obsolete."); } function delete() @@ -285,20 +278,23 @@ class tabs */ function getCopyDialog() { - $ret = ""; - $this->SubDialog = false; - foreach ($this->by_object as $key => $obj){ - if($obj->is_account){ - $tmp = $this->by_object[$key]->getCopyDialog(); - if($tmp['status'] == "SubDialog"){ - $this->SubDialog = true; - return($tmp['string']); - }else{ - $ret .= $tmp['string']; - } - } - } - return($ret); + $ret = ""; + $this->SubDialog = false; + foreach ($this->by_object as $key => $obj){ + if($obj->is_account){ + $tmp = $this->by_object[$key]->getCopyDialog(); + if($tmp['status'] == "SubDialog"){ + $this->SubDialog = true; + return($tmp['string']); + }else{ + if(!empty($tmp['string'])){ + $ret .= $tmp['string']; + $ret .= "

 

"; + } + } + } + } + return($ret); } @@ -329,5 +325,5 @@ class tabs } } - +// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>