mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
remove legacy json format function (#12583)
* remove legacy json format function * remove silly use
This commit is contained in:
@@ -20,7 +20,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;
|
||||
}
|
||||
|
||||
@@ -60,4 +60,4 @@ $response = [
|
||||
'status' => $status,
|
||||
'message' => $message,
|
||||
];
|
||||
echo _json_encode($response);
|
||||
echo json_encode($response, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
|
||||
|
||||
Reference in New Issue
Block a user