]> git.mxchange.org Git - friendica.git/blobdiff - mod/nodeinfo.php
Merge branch '2019.01-rc' into bug/6334-escape-get-app
[friendica.git] / mod / nodeinfo.php
index ca4a622fbb8e7afd78d334c99960e2c065e5155f..edfdda8737bd821a01c4d600d36a1b05dc81c754 100644 (file)
@@ -12,8 +12,6 @@ use Friendica\Core\Logger;
 use Friendica\Core\System;
 use Friendica\Database\DBA;
 use Friendica\Util\Network;
-require_once 'include/dba.php';
-
 function nodeinfo_wellknown(App $a) {
        $nodeinfo = ['links' => [['rel' => 'http://nodeinfo.diaspora.software/ns/schema/1.0',
                                        'href' => System::baseUrl().'/nodeinfo/1.0']]];
@@ -147,7 +145,7 @@ function nodeinfo_init(App $a) {
 
 function nodeinfo_cron() {
 
-       $a = get_app();
+       $a = \get_app();
 
        // If the addon 'statistics_json' is enabled then disable it and activate nodeinfo.
        if (Addon::isEnabled('statistics_json')) {