From 27d1ea33c938250107e7d9438c16055d02851307 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 16 Jan 2016 19:19:48 +0000 Subject: [PATCH] set correct content type for JSON requests --- lam/templates/misc/ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/templates/misc/ajax.php b/lam/templates/misc/ajax.php index 1bbc9f8b..f1c438d7 100644 --- a/lam/templates/misc/ajax.php +++ b/lam/templates/misc/ajax.php @@ -93,7 +93,7 @@ class lamAjax { /** * Sets JSON HTTP header. */ - private function setHeader() { + private static function setHeader() { if (!headers_sent()) { header('Content-Type: application/json; charset=utf-8'); }