- if (EXT_IS_ACTIVE('debug')) {
- // Debug extension found! So Output a small message
- app_die($errfile, $errline, "Error message written to debug.log. Please try to call <a href=\"{!URL!}\">the main page</a> to continue.");
- } elseif ($GLOBALS['error_handler']['exit_on_error'] === true) {
- // No debug extension found, so regular output
- debug_report_bug($message);
- }