mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove unused function; make it clearer that _json_format is not used in PHP 5.4 & later
This commit is contained in:
@@ -967,17 +967,12 @@ if (!defined('JSON_UNESCAPED_UNICODE'))
|
||||
|
||||
function _json_encode($data, $options = 448)
|
||||
{
|
||||
if (version_compare(PHP_VERSION, '5.4', '>='))
|
||||
{
|
||||
if (version_compare(PHP_VERSION, '5.4', '>=')) {
|
||||
return json_encode($data, $options);
|
||||
}
|
||||
|
||||
return _json_format(json_encode($data), $options);
|
||||
}
|
||||
|
||||
function _pretty_print_json($json)
|
||||
{
|
||||
return _json_format($json, JSON_PRETTY_PRINT);
|
||||
else {
|
||||
return _json_format(json_encode($data), $options);
|
||||
}
|
||||
}
|
||||
|
||||
function _json_format($json, $options = 448)
|
||||
|
||||
Reference in New Issue
Block a user