X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Finclude%2Fclass_msg_dialog.inc;h=4f765a5b58fad8eb42cdec984b98a177b6167d74;hb=6b427a4efb6d7e4e40ad96ae32a35f61af301d05;hp=1ba29747e639cb4c9d68043368e6c10a880e47a3;hpb=a4805c47f6314c3ba59489b5b2122c4891e4904a;p=gosa.git diff --git a/gosa-core/include/class_msg_dialog.inc b/gosa-core/include/class_msg_dialog.inc index 1ba29747e..4f765a5b5 100644 --- a/gosa-core/include/class_msg_dialog.inc +++ b/gosa-core/include/class_msg_dialog.inc @@ -24,7 +24,8 @@ define("INFO_DIALOG" , 10001); define("WARNING_DIALOG" , 10002); define("ERROR_DIALOG" , 10003); define("CONFIRM_DIALOG" , 10004); -define("FATAL_ERROR_DIALOG" , 10005); +define("OK_CANCEL_DIALOG" , 10005); +define("FATAL_ERROR_DIALOG" , 10006); class msg_dialog { @@ -40,7 +41,7 @@ class msg_dialog if(empty($s_message)) return; - if(!in_array($i_type,array(INFO_DIALOG,WARNING_DIALOG,ERROR_DIALOG,CONFIRM_DIALOG,FATAL_ERROR_DIALOG))){ + if(!in_array($i_type,array(INFO_DIALOG,WARNING_DIALOG,ERROR_DIALOG,CONFIRM_DIALOG,FATAL_ERROR_DIALOG,OK_CANCEL_DIALOG))){ trigger_error("Invalid msg_dialog type."); $i_type = INFO_DIALOG; } @@ -65,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')){