Issue 6074: Language and "explicit" are now exported

This commit is contained in:
Michael 2018-11-05 18:14:58 +00:00
parent 62761e1099
commit b011e42ad2

View file

@ -46,18 +46,21 @@ function friendica_init(App $a)
} }
$data = [ $data = [
'version' => FRIENDICA_VERSION, 'version' => FRIENDICA_VERSION,
'url' => System::baseUrl(), 'url' => System::baseUrl(),
'addons' => $visible_addons, 'addons' => $visible_addons,
'locked_features' => $locked_features, 'locked_features' => $locked_features,
'register_policy' => $register_policy[intval(Config::get('config', 'register_policy'))], 'explicit_content' => (int)Config::get('system', 'explicit_content', false),
'admin' => $admin, 'language' => Config::get('system','language'),
'site_name' => Config::get('config', 'sitename'), 'register_policy ' => $register_policy[intval(Config::get('config', 'register_policy'))],
'platform' => FRIENDICA_PLATFORM, 'admin' => $admin,
'info' => Config::get('config', 'info'), 'site_name' => Config::get('config', 'sitename'),
'no_scrape_url' => System::baseUrl().'/noscrape' 'platform' => FRIENDICA_PLATFORM,
'info' => Config::get('config', 'info'),
'no_scrape_url' => System::baseUrl().'/noscrape'
]; ];
header('Content-type: application/json; charset=utf-8');
echo json_encode($data); echo json_encode($data);
killme(); killme();
} }