aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-01-22 20:07:08 -0800
committerzotlabs <mike@macgirvin.com>2018-01-22 20:07:08 -0800
commit4cfd7b65fba13b86450730aabdd7f37ea8e2afa9 (patch)
tree1fb07f1ace56300f42bb4a1a8168f9d9d1ac0176
parent5967360991cb3766a6517759369b6d6fd8563c61 (diff)
downloadvolse-hubzilla-4cfd7b65fba13b86450730aabdd7f37ea8e2afa9.tar.gz
volse-hubzilla-4cfd7b65fba13b86450730aabdd7f37ea8e2afa9.tar.bz2
volse-hubzilla-4cfd7b65fba13b86450730aabdd7f37ea8e2afa9.zip
siteinfo embellishments
-rw-r--r--Zotlabs/Module/Siteinfo.php1
-rw-r--r--include/network.php4
2 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Siteinfo.php b/Zotlabs/Module/Siteinfo.php
index fafd51f65..92ee78cc6 100644
--- a/Zotlabs/Module/Siteinfo.php
+++ b/Zotlabs/Module/Siteinfo.php
@@ -5,7 +5,6 @@ namespace Zotlabs\Module;
class Siteinfo extends \Zotlabs\Web\Controller {
function init() {
-logger(print_r($_REQUEST,true));
if (argv(1) === 'json' || $_REQUEST['module_format'] === 'json') {
$data = get_site_info();
json_return_and_die($data);
diff --git a/include/network.php b/include/network.php
index 79a8c6578..2ac430e82 100644
--- a/include/network.php
+++ b/include/network.php
@@ -1579,6 +1579,7 @@ function get_site_info() {
$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'));
+ $local_comments_stat = intval(get_config('system','local_comments_stat'));
$hide_in_statistics = intval(get_config('system','hide_in_statistics'));
$site_expire = intval(get_config('system', 'default_expire_days'));
@@ -1612,13 +1613,14 @@ function get_site_info() {
'default_service_restrictions' => $service_class,
'locked_features' => $locked_features,
'admin' => $admin,
- 'dbdriver' => DBA::$dba->getdriver(),
+ 'dbdriver' => DBA::$dba->getdriver() . ' ' . ((ACTIVE_DBTYPE == DBTYPE_POSTGRES) ? 'postgres' : 'mysql'),
'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
];