Code

Migrated to get_cfg_value
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Jul 2008 11:54:42 +0000 (11:54 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Jul 2008 11:54:42 +0000 (11:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12014 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_msg_dialog.inc

index e6de1acf1aaa9fd1bc928391f2e32f11dffa4a7b..4f765a5b58fad8eb42cdec984b98a177b6167d74 100644 (file)
@@ -66,8 +66,7 @@ class msg_dialog
                        /* Append trace information, only if error messages are enabled */
                        if(     isset($config) && 
                                is_object($config) && 
-                               isset($config->data['MAIN']['DISPLAYERRORS']) &&
-                               preg_match("/^true$/i",$config->data['MAIN']['DISPLAYERRORS'])){
+                               $config->get_cfg_value("displayerrors") == "true" ){
                                $this->a_Trace   = debug_backtrace();
                        }
                        if(!session::is_set('msg_dialogs')){