Browse Source

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

pull/40/head
ctrlcctrlv 11 years ago
parent
commit
affad5594e
  1. 2
      inc/display.php

2
inc/display.php

@ -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,

Loading…
Cancel
Save