From: hickert Date: Wed, 24 Nov 2010 10:39:34 +0000 (+0000) Subject: Only display errors about missing classes while we are in development mode X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=98d2654fafbec2491e6fd0b4327406ef8ac1ddaa;p=gosa.git 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 --- 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