X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2F_well_known.php;h=25289171f67f3f9f4965c7b80acda5b3dd38d66a;hb=046046e0c46b75ecff69ebeefc469be8a01bd9d3;hp=5d1c1f4311fe1a124d836cd17e45e1428bfee3e8;hpb=390d5706f46ce58cbed24b292d5c1f1b9789a8a8;p=friendica.git diff --git a/mod/_well_known.php b/mod/_well_known.php index 5d1c1f4311..25289171f6 100644 --- a/mod/_well_known.php +++ b/mod/_well_known.php @@ -2,10 +2,11 @@ use Friendica\App; use Friendica\Core\Config; +use Friendica\Core\System; -require_once("mod/hostxrd.php"); -require_once("mod/nodeinfo.php"); -require_once("mod/xrd.php"); +require_once 'mod/hostxrd.php'; +require_once 'mod/nodeinfo.php'; +require_once 'mod/xrd.php'; function _well_known_init(App $a) { @@ -25,7 +26,7 @@ function _well_known_init(App $a) break; } } - http_status_exit(404); + System::httpExit(404); killme(); } @@ -39,7 +40,7 @@ function wk_social_relay() $scope = SR_SCOPE_NONE; } - $tags = array(); + $tags = []; if ($scope == SR_SCOPE_TAGS) { $server_tags = Config::get('system', 'relay_server_tags'); @@ -59,16 +60,16 @@ function wk_social_relay() } } - $taglist = array(); + $taglist = []; foreach ($tags AS $tag) { $taglist[] = $tag; } - $relay = array( + $relay = [ "subscribe" => $subscribe, "scope" => $scope, "tags" => $taglist - ); + ]; header('Content-type: application/json; charset=utf-8'); echo json_encode($relay, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);