FIX Replace Convert JSON methods with json_* methods, deprecated from SilverStripe 4.4

This commit is contained in:
Robbie Averill 2018-10-28 21:32:15 +00:00
parent 188f77c569
commit 6bc589c741
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ class ContentReviewCMSExtension extends LeftAndMainExtension
$data = array_merge($data, $extraData); $data = array_merge($data, $extraData);
} }
$response = HTTPResponse::create(Convert::raw2json($data)); $response = HTTPResponse::create(json_encode($data));
$response->addHeader('Content-Type', 'application/json'); $response->addHeader('Content-Type', 'application/json');
return $response; return $response;