mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
Merge pull request #107 from creative-commoners/pulls/4.1/remove-json-methods
FIX Replace Convert JSON methods with json_* methods, deprecated from SilverStripe 4.4
This commit is contained in:
commit
3d00342ac2
@ -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