mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
FIX Replace Convert JSON methods with json_* methods, deprecated from SilverStripe 4.4
This commit is contained in:
parent
188f77c569
commit
6bc589c741
@ -159,7 +159,7 @@ class ContentReviewCMSExtension extends LeftAndMainExtension
|
||||
$data = array_merge($data, $extraData);
|
||||
}
|
||||
|
||||
$response = HTTPResponse::create(Convert::raw2json($data));
|
||||
$response = HTTPResponse::create(json_encode($data));
|
||||
$response->addHeader('Content-Type', 'application/json');
|
||||
|
||||
return $response;
|
||||
|
Loading…
Reference in New Issue
Block a user