From dd10a77488a16eba43eaa0bf8fb026cb10ceacff Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 11 Sep 2014 22:52:32 -0700 Subject: and then make it even more useful --- mod/siteinfo.php | 7 +++++++ 1 file changed, 7 insertions(+) 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, -- cgit v1.2.3