Rerun /reporting/includes/report_classes.inc
[fa-stable.git] / includes / ui / ui_msgs.inc
index 5c28c8939ba5d65ef3a25f3e89fd182b8e6efaea..58e3df3078fcce5743f655970b2edc8e65d879e3 100644 (file)
 ***********************************************************************/
 function display_error($msg, $center=true)
 {
-       global $go_debug;
-
-       $bt = $go_debug>1 ? ('<hr>'.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 "<caption>$msg</caption>\n";
+}
+
 function display_heading($msg)
 {
        echo "<center><span class='headingtext'>$msg</span></center>\n";        
@@ -67,4 +69,3 @@ function stock_item_heading($stock_id)
        }
 }
 
-?>
\ No newline at end of file