aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortuscanhobbit <tuscanhobbit@users.noreply.github.com>2014-10-08 19:03:07 +0200
committertuscanhobbit <tuscanhobbit@users.noreply.github.com>2014-10-08 19:03:07 +0200
commit9edaa2843b9982f52fb1ed93b1c6e3d9e53921d7 (patch)
treec316cac094bfd5692b2d9161bcde207b156ea64d
parentc7c76cf221e8bcda5f6491ef9935ed9a7378088a (diff)
downloadvolse-hubzilla-9edaa2843b9982f52fb1ed93b1c6e3d9e53921d7.tar.gz
volse-hubzilla-9edaa2843b9982f52fb1ed93b1c6e3d9e53921d7.tar.bz2
volse-hubzilla-9edaa2843b9982f52fb1ed93b1c6e3d9e53921d7.zip
it's probably better to return an int type in json
-rw-r--r--mod/siteinfo.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/siteinfo.php b/mod/siteinfo.php
index ef0dde065..c1d65fadd 100644
--- a/mod/siteinfo.php
+++ b/mod/siteinfo.php
@@ -55,6 +55,7 @@ function siteinfo_init(&$a) {
$channels_active_halfyear_stat = intval(get_config('system','channels_active_halfyear_stat'));
$channels_active_monthly_stat = intval(get_config('system','channels_active_monthly_stat'));
$local_posts_stat = intval(get_config('system','local_posts_stat'));
+ $hide_in_statistics = intval(get_config('system','hide_in_statistics'));
$data = Array(
'version' => RED_VERSION,
@@ -75,7 +76,7 @@ function siteinfo_init(&$a) {
'channels_active_halfyear' => $channels_active_halfyear_stat,
'channels_active_monthly' => $channels_active_monthly_stat,
'local_posts' => $local_posts_stat,
- 'hide_in_statistics' => get_config('system','hide_in_statistics')
+ 'hide_in_statistics' => $hide_in_statistics
);
json_return_and_die($data);
}