]> git.mxchange.org Git - friendica.git/blobdiff - mod/nodeinfo.php
Fix incorrect Temporal reference after Item function move rebase
[friendica.git] / mod / nodeinfo.php
index bcaf8e7a931cc590853722580b6dbc31a31a4092..5cadc41c4975c1a19debb1a3564b3016a04ac732 100644 (file)
@@ -9,6 +9,7 @@ use Friendica\App;
 use Friendica\Core\Addon;
 use Friendica\Core\System;
 use Friendica\Core\Config;
+use Friendica\Util\Network;
 
 function nodeinfo_wellknown(App $a) {
        $nodeinfo = ['links' => [['rel' => 'http://nodeinfo.diaspora.software/ns/schema/1.0',
@@ -21,12 +22,12 @@ function nodeinfo_wellknown(App $a) {
 
 function nodeinfo_init(App $a) {
        if (!Config::get('system', 'nodeinfo')) {
-               http_status_exit(404);
+               System::httpExit(404);
                killme();
        }
 
        if (($a->argc != 2) || ($a->argv[1] != '1.0')) {
-               http_status_exit(404);
+               System::httpExit(404);
                killme();
        }
 
@@ -246,7 +247,7 @@ function nodeinfo_cron() {
        // Now trying to register
        $url = 'http://the-federation.info/register/'.$a->get_hostname();
         logger('registering url: '.$url, LOGGER_DEBUG);
-       $ret = fetch_url($url);
+       $ret = Network::fetchUrl($url);
         logger('registering answer: '.$ret, LOGGER_DEBUG);
 
         logger('cron_end');