diff options
author | RedMatrix <info@friendica.com> | 2014-10-01 14:09:12 +1000 |
---|---|---|
committer | RedMatrix <info@friendica.com> | 2014-10-01 14:09:12 +1000 |
commit | bfa4cc8678c32ca85636a9a217bfc40ab9e52444 (patch) | |
tree | 564c1b2a4eb5cbff233e47380e91a193d57e1cbb /mod/siteinfo.php | |
parent | 1a4a248a26940dc108592c7b5f279a961d31f055 (diff) | |
parent | bfeac3670295781fac471d45a4efe8ee25f61083 (diff) | |
download | volse-hubzilla-bfa4cc8678c32ca85636a9a217bfc40ab9e52444.tar.gz volse-hubzilla-bfa4cc8678c32ca85636a9a217bfc40ab9e52444.tar.bz2 volse-hubzilla-bfa4cc8678c32ca85636a9a217bfc40ab9e52444.zip |
Merge pull request #609 from tuscanhobbit/dev
Dev
Diffstat (limited to 'mod/siteinfo.php')
-rw-r--r-- | mod/siteinfo.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/siteinfo.php b/mod/siteinfo.php index 4568906f3..eab52e41e 100644 --- a/mod/siteinfo.php +++ b/mod/siteinfo.php @@ -4,7 +4,8 @@ function siteinfo_init(&$a) { 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'); + $sql_extra = ''; $r = q("select * from channel left join account on account_id = channel_account_id where ( account_roles & 4096 ) and account_default_channel = channel_id"); @@ -100,6 +101,7 @@ function siteinfo_init(&$a) { 'url' => z_root(), 'plugins' => $visible_plugins, 'register_policy' => $register_policy[$a->config['system']['register_policy']], + 'directory_mode' => $directory_mode[$a->config['system']['directory_mode']], 'diaspora_emulation' => get_config('system','diaspora_enabled'), 'rss_connections' => get_config('system','feed_contacts'), 'default_service_restrictions' => $service_class, |