Code

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

gosa-core/include/class_tabs.inc

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