diff options
author | friendica <info@friendica.com> | 2014-09-11 22:52:32 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-09-11 22:52:32 -0700 |
commit | dd10a77488a16eba43eaa0bf8fb026cb10ceacff (patch) | |
tree | 789e901b77932643688913c6f34105a9bd7b5d1a /mod | |
parent | ad8416b4c313b748b7a6218521d707a442af74cd (diff) | |
download | volse-hubzilla-dd10a77488a16eba43eaa0bf8fb026cb10ceacff.tar.gz volse-hubzilla-dd10a77488a16eba43eaa0bf8fb026cb10ceacff.tar.bz2 volse-hubzilla-dd10a77488a16eba43eaa0bf8fb026cb10ceacff.zip |
and then make it even more useful
Diffstat (limited to 'mod')
-rw-r--r-- | mod/siteinfo.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mod/siteinfo.php b/mod/siteinfo.php index 8d53e8edc..4f39ffadc 100644 --- a/mod/siteinfo.php +++ b/mod/siteinfo.php @@ -20,6 +20,12 @@ function siteinfo_init(&$a) { $admin = false; } + $def_service_class = get_config('system','default_service_class'); + if($def_service_class) + $service_class = get_config('service_class',$def_service_class); + else + $service_class = false; + $visible_plugins = array(); if(is_array($a->plugins) && count($a->plugins)) { $r = q("select * from addon where hidden = 0"); @@ -44,6 +50,7 @@ function siteinfo_init(&$a) { 'register_policy' => $register_policy[$a->config['system']['register_policy']], 'diaspora_emulation' => get_config('system','diaspora_enabled'), 'rss_connections' => get_config('system','feed_contacts'), + 'default_service_restrictions' => $service_class, 'admin' => $admin, 'site_name' => (($site_name) ? $site_name : ''), 'platform' => RED_PLATFORM, |