diff options
author | jhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6> | 2009-12-23 12:38:13 -0500 |
---|---|---|
committer | jhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6> | 2009-12-23 12:38:13 -0500 |
commit | ebda82d787b3620424c1dcf4336146ea06815a55 (patch) | |
tree | c05021cb36da9eff4c589e67824f237500b01149 /includes/functions.php | |
parent | 6c42f30a0424cbf1c1af63f21d7f5074a4653c7a (diff) | |
download | bayonetcms-ebda82d787b3620424c1dcf4336146ea06815a55.tar.gz |
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
Diffstat (limited to 'includes/functions.php')
-rw-r--r-- | includes/functions.php | 3 |
1 files changed, 1 insertions, 2 deletions
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("<pre>$errstr</pre>"); + //decho("<b>Warning:</b> $errfile:$errline, $errstr"); push_error_stack("<b>Error Number:</b> $errno<br/><b>Error:</b> $errstr<br/><b>In File:</b> $errfile<br/><b>Line:</b> $errline"); if($errno == FATAL || $errno == ERROR){ push_error_stack($errstr); |