X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fstatistics_json.php;h=9b2263da778de9e027f7089fa053918d95eb08d2;hb=5a6fa4ae87f7ae5c07672b0fd90fef7c52680818;hp=2f2adaafe7980c40e564bfc7e8499bae4a2e3af8;hpb=f42d76858655fc62dfbd05c0bcf2f6a49ea0bf30;p=friendica.git diff --git a/mod/statistics_json.php b/mod/statistics_json.php index 2f2adaafe7..9b2263da77 100644 --- a/mod/statistics_json.php +++ b/mod/statistics_json.php @@ -1,27 +1,31 @@ $a->config["sitename"], - "network" => FRIENDICA_PLATFORM, - "version" => FRIENDICA_VERSION."-".DB_UPDATE_VERSION, - "registrations_open" => ($a->config['register_policy'] != 0), - "total_users" => get_config('nodeinfo','total_users'), - "active_users_halfyear" => get_config('nodeinfo','active_users_halfyear'), - "active_users_monthly" => get_config('nodeinfo','active_users_monthly'), - "local_posts" => get_config('nodeinfo','local_posts') - ); + "name" => $a->config["sitename"], + "network" => FRIENDICA_PLATFORM, + "version" => FRIENDICA_VERSION . "-" . DB_UPDATE_VERSION, + "registrations_open" => ($a->config['register_policy'] != 0), + "total_users" => Config::get('nodeinfo', 'total_users'), + "active_users_halfyear" => Config::get('nodeinfo', 'active_users_halfyear'), + "active_users_monthly" => Config::get('nodeinfo', 'active_users_monthly'), + "local_posts" => Config::get('nodeinfo', 'local_posts') + ); $statistics["services"] = array(); $statistics["services"]["appnet"] = plugin_enabled("appnet"); @@ -53,7 +57,7 @@ function statistics_json_init(App &$a) { $statistics["wordpress"] = $statistics["services"]["wordpress"]; header("Content-Type: application/json"); - echo json_encode($statistics, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES); - logger("statistics_init: printed ".print_r($statistics, true), LOGGER_DATA); + echo json_encode($statistics, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); + logger("statistics_init: printed " . print_r($statistics, true), LOGGER_DATA); killme(); }