From e39cce678a4d23290955622ab097e4784dc0b3ad Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 19 Nov 2010 16:29:51 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_tabs.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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']; -- 2.30.2