diff options
author | jhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6> | 2009-12-20 15:34:08 -0500 |
---|---|---|
committer | jhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6> | 2009-12-20 15:34:08 -0500 |
commit | 3af9846d4ecc1e0274833740fd21012afe9ef51f (patch) | |
tree | 2266233bfca1233f2860f3b8a75d453a9513f8c7 /modules.php | |
parent | c0048a6c5a910588be35e30ea96d2b9b335c0503 (diff) | |
download | bayonetcms-3af9846d4ecc1e0274833740fd21012afe9ef51f.tar.gz |
Error handling functions added, and applied
git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@380 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'modules.php')
-rw-r--r-- | modules.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules.php b/modules.php index 96bb241..5eaf705 100644 --- a/modules.php +++ b/modules.php @@ -51,6 +51,20 @@ for($chars = 0; $chars <= strlen($load_temp); ++$chars) } } */ + +/* If the error stack has recieved messages, output each failure in a clean fashion */ +global $error_stack_messages; +if(!empty($error_stack_messages)) +{ + $messageBuffer = NULL; + foreach($error_stack_messages as $order => $error) + { + $messageBuffer .= "<p><b>Stack Order:</b>$order<br/>$error</p>"; + } + ReportError($messageBuffer); + //exit(1); +} + if(isset($load) && !empty($load) && !isset($file)) { if(file_exists("modules/" . $load)) |