X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_msgs.inc;h=58e3df3078fcce5743f655970b2edc8e65d879e3;hb=c82cbc67f22454e4afd30e53c40043b54a732be3;hp=5c28c8939ba5d65ef3a25f3e89fd182b8e6efaea;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git diff --git a/includes/ui/ui_msgs.inc b/includes/ui/ui_msgs.inc index 5c28c893..58e3df30 100644 --- a/includes/ui/ui_msgs.inc +++ b/includes/ui/ui_msgs.inc @@ -11,10 +11,7 @@ ***********************************************************************/ function display_error($msg, $center=true) { - global $go_debug; - - $bt = $go_debug>1 ? ('
'.get_backtrace(true)) : ''; - trigger_error($msg.$bt, E_USER_ERROR); + trigger_error($msg, E_USER_ERROR); } function display_notification($msg, $center=true) @@ -32,6 +29,11 @@ function display_notification_centered($msg) display_notification($msg, true); } +function display_caption($msg) +{ + echo "$msg\n"; +} + function display_heading($msg) { echo "
$msg
\n"; @@ -67,4 +69,3 @@ function stock_item_heading($stock_id) } } -?> \ No newline at end of file