]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Contact.php
Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get()
[friendica.git] / src / Model / Contact.php
index 577f3da1df7aeacb6071d67e71d3c83b1eed04a3..84481b9fa5c858b9d194f3657b46cd55b5502a99 100644 (file)
@@ -2266,13 +2266,13 @@ class Contact
 
                if (($protocol === Protocol::DFRN) && !DBA::isResult($contact)) {
                        if ($interactive) {
-                               if (strlen($a->getURLPath())) {
+                               if (strlen(DI::baseUrl()->getUrlPath())) {
                                        $myaddr = bin2hex(System::baseUrl() . '/profile/' . $a->user['nickname']);
                                } else {
-                                       $myaddr = bin2hex($a->user['nickname'] . '@' . $a->getHostName());
+                                       $myaddr = bin2hex($a->user['nickname'] . '@' . DI::baseUrl()->getHostname());
                                }
 
-                               $a->internalRedirect($ret['request'] . "&addr=$myaddr");
+                               DI::baseUrl()->redirect($ret['request'] . "&addr=$myaddr");
 
                                // NOTREACHED
                        }