X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_tabs.inc;h=f75847a3a54503f521f7b2ad5f7833bfb18a799e;hb=7da42021bacbd916f09c39b742509482c185c699;hp=c543065b22dee48da42e42047218e2cc3695155f;hpb=e2910a734cd4c714bc7c92499877e606a6c13525;p=gosa.git diff --git a/include/class_tabs.inc b/include/class_tabs.inc index c543065b2..f75847a3a 100644 --- a/include/class_tabs.inc +++ b/include/class_tabs.inc @@ -61,6 +61,35 @@ class tabs } } + + function multiple_support_available() + { + foreach($this->by_object as $name => $obj){ + if($obj->multiple_support){ + return(TRUE); + } + } + return(FALSE); + } + + function enable_multiple_support() + { + if(!$this->multiple_support_available()){ + return(FALSE); + }else{ + foreach($this->by_object as $name => $obj){ + if($obj->multiple_support){ + $this->by_object[$name]->multiple_support_active = TRUE; + }else{ + unset($this->by_object[$name]); + unset($this->by_name[$name]); + } + } + } + return(TRUE); + } + + function execute() { /* Rotate current to last */ @@ -154,7 +183,8 @@ class tabs $title= preg_replace("/ /"," ",$title); /* Take care about notifications */ - if ($this->by_object[$class]->pl_notify){ + $obj = $this->by_object[$class]; + if ( $this->by_object[$class]->pl_notify && ($obj->is_account || $obj->ignore_account)){ $notify= "id=\"notify\""; } else { $notify= "";