diff options
author | zotlabs <mike@macgirvin.com> | 2018-02-24 14:38:28 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-02-24 14:38:28 -0800 |
commit | d406e2aae20f20a7df6fc77d9317323de043c0f6 (patch) | |
tree | 7322bfbdd81e7e2d62fd3f81a6a19340505d2030 | |
parent | 3153129e2eb968a189a8a7050d06892cbc13c651 (diff) | |
download | volse-hubzilla-d406e2aae20f20a7df6fc77d9317323de043c0f6.tar.gz volse-hubzilla-d406e2aae20f20a7df6fc77d9317323de043c0f6.tar.bz2 volse-hubzilla-d406e2aae20f20a7df6fc77d9317323de043c0f6.zip |
siteinfo.json - if hide_in_statistics is set only include the total channels count and no other statistical info
-rw-r--r-- | include/network.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/network.php b/include/network.php index 0824183f7..f8cb68613 100644 --- a/include/network.php +++ b/include/network.php @@ -1617,13 +1617,16 @@ function get_site_info() { 'lastpoll' => get_config('system','lastpoll'), 'info' => (($site_info) ? $site_info : ''), 'channels_total' => $channels_total_stat, - 'channels_active_halfyear' => $channels_active_halfyear_stat, - 'channels_active_monthly' => $channels_active_monthly_stat, - 'local_posts' => $local_posts_stat, - 'local_comments' => $local_comments_stat, 'hide_in_statistics' => $hide_in_statistics ]; + if(! $hide_in_statistics) { + $data['channels_active_halfyear'] = $channels_active_halfyear_stat; + $data['channels_active_monthly'] = $channels_active_monthly_stat; + $data['local_posts'] = $local_posts_stat; + $data['local_comments'] = $local_comments_stat; + } + return $data; } |