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:
Guy Marriott 2018-10-29 11:31:08 +13:00 committed by GitHub
commit 3d00342ac2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;