Code

Only display messages about missing plugins in development mode
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Nov 2010 16:29:51 +0000 (16:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Nov 2010 16:29:51 +0000 (16:29 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20306 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_tabs.inc

index 2dbd3ebafb6575017aa09bcdc46e408ffed51ece..da8dc9d76a1f9e4041f91cfc00b60ed4a43904d0 100644 (file)
@@ -62,8 +62,10 @@ class tabs
     $this->acl_category = $acl_category;
     foreach ($data as &$tab){
 
-      if (!plugin_available($tab['CLASS']) && $this->config->boolValueIsTrue("core","developmentMode")){
-        trigger_error(sprintf("Unknown class %s!", bold($tab['CLASS'])));
+      if (!plugin_available($tab['CLASS'])){
+        if($this->config->boolValueIsTrue("core","developmentMode")){
+            trigger_error(sprintf("Unknown class %s!", bold($tab['CLASS'])));
+        }
        continue;
       }
       if ($this->current == "")  $this->current= $tab['CLASS'];