]> git.mxchange.org Git - friendica.git/blobdiff - mod/_well_known.php
Bugfix for pull request 3125
[friendica.git] / mod / _well_known.php
index 6c33136f957a2576bf8a121404782aa23ece0f03..75948a008834abf70279834a1911dbe39a913f96 100644 (file)
@@ -1,9 +1,9 @@
 <?php\r
+/// @TODO This file has DOS line endings!\r
 require_once("mod/hostxrd.php");\r
 require_once("mod/nodeinfo.php");\r
 \r
-if(! function_exists('_well_known_init')) {\r
-function _well_known_init(&$a){\r
+function _well_known_init(App $a) {\r
        if ($a->argc > 1) {\r
                switch($a->argv[1]) {\r
                        case "host-meta":\r
@@ -20,10 +20,8 @@ function _well_known_init(&$a){
        http_status_exit(404);\r
        killme();\r
 }\r
-}\r
 \r
-if(! function_exists('wk_social_relay')) {\r
-function wk_social_relay(&$a) {\r
+function wk_social_relay(App $a) {\r
 \r
        define('SR_SCOPE_ALL', 'all');\r
        define('SR_SCOPE_TAGS', 'tags');\r
@@ -67,4 +65,3 @@ function wk_social_relay(&$a) {
        echo json_encode($relay, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES);\r
        exit;\r
 }\r
-}\r