aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorHabeas Codice <habeascodice@federated.social>2014-11-22 13:27:52 -0800
committerHabeas Codice <habeascodice@federated.social>2014-11-22 13:27:52 -0800
commit8ac3b938fde2ccd7719ac1c22ef5460b35298d78 (patch)
tree7d8e3a730eb26f3abe659c16baef333a198b08b1 /mod
parentab5bf1b7d69f4027f595eef56cf4d99207b8b46e (diff)
downloadvolse-hubzilla-8ac3b938fde2ccd7719ac1c22ef5460b35298d78.tar.gz
volse-hubzilla-8ac3b938fde2ccd7719ac1c22ef5460b35298d78.tar.bz2
volse-hubzilla-8ac3b938fde2ccd7719ac1c22ef5460b35298d78.zip
added dbdriver to siteinfo json to better track affected sites
Diffstat (limited to 'mod')
-rw-r--r--mod/siteinfo.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/siteinfo.php b/mod/siteinfo.php
index 12598cc12..03e578467 100644
--- a/mod/siteinfo.php
+++ b/mod/siteinfo.php
@@ -1,7 +1,8 @@
<?php
function siteinfo_init(&$a) {
-
+ global $db;
+
if ($a->argv[1]=="json"){
$register_policy = Array('REGISTER_CLOSED', 'REGISTER_APPROVE', 'REGISTER_OPEN');
$directory_mode = Array('DIRECTORY_MODE_NORMAL', 'DIRECTORY_MODE_SECONDARY','DIRECTORY_MODE_PRIMARY', 'DIRECTORY_MODE_STANDALONE');
@@ -71,6 +72,7 @@ function siteinfo_init(&$a) {
'admin' => $admin,
'site_name' => (($site_name) ? $site_name : ''),
'platform' => RED_PLATFORM,
+ 'dbdriver' => $db->getdriver(),
'info' => (($site_info) ? $site_info : ''),
'channels_total' => $channels_total_stat,
'channels_active_halfyear' => $channels_active_halfyear_stat,