From bd851f292984cff338a1d2e411de8271c0fed74d Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Tue, 18 Apr 2017 14:54:58 +0200 Subject: [PATCH] Remove http_response_code() Not supported prior to PHP 5.4 HFP-959 --- h5p.classes.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index 1fe5140..44f0f1b 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2777,10 +2777,6 @@ class H5PCore { * @param null|int $status_code Http response code */ private static function printJson($data, $status_code = NULL) { - if ($status_code !== NULL) { - http_response_code($status_code); - } - header('Cache-Control: no-cache'); header('Content-type: application/json; charset=utf-8'); print json_encode($data);