From 98d2654fafbec2491e6fd0b4327406ef8ac1ddaa Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 24 Nov 2010 10:39:34 +0000 Subject: [PATCH] Only display errors about missing classes while we are in development mode git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20351 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiManagement.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc index b6c24815c..315f136c6 100644 --- a/gosa-plugins/fai/admin/fai/class_faiManagement.inc +++ b/gosa-plugins/fai/admin/fai/class_faiManagement.inc @@ -862,10 +862,12 @@ class faiManagement extends management } } }else{ - trigger_error("Unknown class DaemonEvent / gosaSupportDaemon"); - msg_dialog::display(_("Fatal error"), - "Daemon events called but classes where not accessible, DaemonEvent gosaSupportDaemon", - FATAL_ERROR_DIALOG); + if($this->config->boolValueIsTrue("core","developmentMode")){ + trigger_error("Unknown class DaemonEvent / gosaSupportDaemon"); + msg_dialog::display(_("Fatal error"), + "Daemon events called but classes where not accessible, DaemonEvent gosaSupportDaemon", + FATAL_ERROR_DIALOG); + } } // Update list and release selector to point to the newly created release -- 2.30.2