From affad5594e62b830b76ba141a59c7042ca42494e Mon Sep 17 00:00:00 2001 From: ctrlcctrlv Date: Sun, 18 Aug 2013 22:51:09 +0000 Subject: [PATCH] Fix compatibility with php<5.4, sorry anachronos ;_; --- inc/display.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/display.php b/inc/display.php index d16b12aa..2c7153bb 100644 --- a/inc/display.php +++ b/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,