diff options
| author | czaks <marcin@6irc.net> | 2013-08-17 16:22:04 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-08-17 16:22:04 -0400 |
| commit | ff479e8bcbf2c9535bd614442ae62858fdd870ec (patch) | |
| tree | 07bf06f834efa9bd1300fe104b5a68e3ca47ddfc /inc/display.php | |
| parent | bf119b7abd1f37a2871be7cf652adbcd37486a1e (diff) | |
| parent | 5c2ec21e139ab6be4dcf5d5a5d548f402594f39d (diff) | |
Merge branch 'master' of https://github.com/ctrlcctrlv/Tinyboard
Diffstat (limited to 'inc/display.php')
| -rw-r--r-- | inc/display.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/display.php b/inc/display.php index 0f1bc195..9009be9a 100644 --- a/inc/display.php +++ b/inc/display.php @@ -74,6 +74,9 @@ function error($message, $priority = true, $debug_stuff = false) { if ($config['debug'] && isset($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( 'config' => $config, |
