remove legacy json format function (#12583)

* remove legacy json format function

* remove silly use
This commit is contained in:
Tony Murray
2021-03-04 14:55:41 +01:00
committed by GitHub
parent e4e2113585
commit 6e19805bcb
65 changed files with 84 additions and 206 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ if (! Auth::user()->hasGlobalAdmin()) {
'status' => 'error',
'message' => 'Need to be admin',
];
echo _json_encode($response);
echo json_encode($response, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
exit;
}
@@ -50,4 +50,4 @@ $response = [
'message' => $message,
'extra' => $extra,
];
echo _json_encode($response);
echo json_encode($response, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);