From ebda82d787b3620424c1dcf4336146ea06815a55 Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Wed, 23 Dec 2009 17:38:13 +0000 Subject: New debugging methods implements. config.php has two new options, "show_messages", and "repeat messages". If a "show_messages" is enabled any decho statements are rendered above the site footer. git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@395 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- includes/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'includes/functions.php') diff --git a/includes/functions.php b/includes/functions.php index 0203d34..73c506c 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -340,8 +340,7 @@ function fatal_error_handler($buffer) { function handle_error ($errno, $errstr, $errfile, $errline) { - //error_log("$errstr in $errfile on line $errline"); - //ReportError("
$errstr
"); + //decho("Warning: $errfile:$errline, $errstr"); push_error_stack("Error Number: $errno
Error: $errstr
In File: $errfile
Line: $errline"); if($errno == FATAL || $errno == ERROR){ push_error_stack($errstr); -- cgit