Remove http_response_code()

Not supported prior to PHP 5.4
HFP-959
pull/10/merge
Frode Petterson 2017-04-18 14:54:58 +02:00
parent dcbb5a2a18
commit bd851f2929
1 changed files with 0 additions and 4 deletions

View File

@ -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);