From: hickert Date: Fri, 19 Nov 2010 16:29:51 +0000 (+0000) Subject: Only display messages about missing plugins in development mode X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e39cce678a4d23290955622ab097e4784dc0b3ad;p=gosa.git Only display messages about missing plugins in development mode git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20306 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_tabs.inc b/gosa-core/include/class_tabs.inc index 2dbd3ebaf..da8dc9d76 100644 --- a/gosa-core/include/class_tabs.inc +++ b/gosa-core/include/class_tabs.inc @@ -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'];