1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-18 09:04:44 +01:00

Fix compatibility with php<5.4, sorry anachronos ;_;

This commit is contained in:
ctrlcctrlv 2013-08-18 22:51:09 +00:00
parent 8591b3db1c
commit c3f75bed83

View File

@ -86,7 +86,7 @@ function error($message, $priority = true, $debug_stuff = false) {
}
// Return the bad request header, necessary for AJAX posts
http_response_code(400);
header($_SERVER['SERVER_PROTOCOL'] . ' 400 Bad Request');
die(Element('page.html', array(
'config' => $config,