summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-05-17 17:35:39 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-05-17 17:35:39 -0400
commit5e4b40665fa11ce0fd0fe957a19e2b7e63f47446 (patch)
treeb0e458788f84c03608154866ec3e964ec89ccb14 /core
parent09da5720e8dccaa2437a7b25d992eaa104753684 (diff)
Rewrite board drag and drop with jquery (touch devices, IE, auto-update)
Diffstat (limited to 'core')
-rw-r--r--core/response.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/response.php b/core/response.php
index 0973bf95..a5f0e4dc 100644
--- a/core/response.php
+++ b/core/response.php
@@ -14,12 +14,8 @@ class Response
*/
public function status($status_code)
{
- if (strpos(php_sapi_name(), 'apache') !== false) {
- header('HTTP/1.0 '.$status_code);
- }
- else {
- header('Status: '.$status_code);
- }
+ header('Status: '.$status_code);
+ header($_SERVER['SERVER_PROTOCOL'].' '.$status_code);
}
public function redirect($url)