Commit 8aaa9488 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Removed the crappy error handlers, and include the error handling library.

parent b0fe7817
......@@ -21,17 +21,6 @@
// @todo <nigel> Set up error handling. For now, use trigger_error. I will
// update all calls as necessary once error handling is finalised.
function error($code, $message, $file, $lines, $vars) {
echo "$code:$message in $file on line $line<br>";
function exception($e) {
echo $e;
$CFG = new StdClass;
$CFG->docroot = dirname(__FILE__).'/';
......@@ -45,6 +34,9 @@ else {
set_include_path('.' . PATH_SEPARATOR . $CFG->libroot);
// Set up error handling
require 'errors.php';
if (!is_readable($CFG->docroot . 'config.php')) {
trigger_error('Not installed! Please create config.php from config-dist.php');
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment