|
@ -75,6 +75,9 @@ function error($message, $priority = true, $debug_stuff = false) { |
|
|
$debug_stuff = array_combine(array('SQLSTATE', 'Error code', 'Error message'), $db_error); |
|
|
$debug_stuff = array_combine(array('SQLSTATE', 'Error code', 'Error message'), $db_error); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Return the bad request header, necessary for AJAX posts |
|
|
|
|
|
http_response_code(400); |
|
|
|
|
|
|
|
|
die(Element('page.html', array( |
|
|
die(Element('page.html', array( |
|
|
'config' => $config, |
|
|
'config' => $config, |
|
|
'title' => _('Error'), |
|
|
'title' => _('Error'), |
|
|