Code

Updated Application remove.
[gosa.git] / gosa-core / include / class_tabs.inc
index 4d5c69512fb5e7abb48a9cbd389b5dcdf97d06d5..e05e60c516aaedae9b247bbf93a63603d4fbea7a 100644 (file)
@@ -44,6 +44,11 @@ class tabs
     $baseobject= NULL;
 
     foreach ($data as &$tab){
+
+      if (!plugin_available($tab['CLASS'])){
+       continue;
+      }
+
       $this->by_name[$tab['CLASS']]= $tab['NAME'];
 
       if ($baseobject === NULL){
@@ -206,7 +211,7 @@ class tabs
     foreach (array_reverse($this->by_object) as $key => $obj){
       $reason= $obj->allow_remove();
       if ($reason != ""){
-        print_red(sprintf(_("Delete process has been canceled by plugin '%s': %s"), $key, $reason));
+        msg_dialog::display(_("Warning"), sprintf(_("Delete process has been canceled by plugin '%s': %s"), $key, $reason), WARNING_DIALOG);
         return;
       }
     }