]> git.mxchange.org Git - friendica.git/blobdiff - mod/allfriends.php
Fixes:
[friendica.git] / mod / allfriends.php
index bf852419d21f5cf27cb7dbcada9129ebad56853f..585f787cd70e77051ab87dcb4b489a2038aa11b5 100644 (file)
@@ -2,10 +2,12 @@
 /**
  * @file mod/allfriends.php
  */
+
 use Friendica\App;
 use Friendica\Content\ContactSelector;
 use Friendica\Core\L10n;
 use Friendica\Core\System;
+use Friendica\Database\DBA;
 use Friendica\Database\DBM;
 use Friendica\Model\Contact;
 use Friendica\Model\GContact;
@@ -33,7 +35,7 @@ function allfriends_content(App $a)
 
        $uid = $a->user['uid'];
 
-       $contact = dba::selectFirst('contact', ['name', 'url', 'photo'], ['id' => $cid, 'uid' => local_user()]);
+       $contact = DBA::selectFirst('contact', ['name', 'url', 'photo'], ['id' => $cid, 'uid' => local_user()]);
 
        if (!DBM::is_result($contact)) {
                return;
@@ -70,7 +72,7 @@ function allfriends_content(App $a)
                } else {
                        $connlnk = System::baseUrl() . '/follow/?url=' . $rr['url'];
                        $photo_menu = [
-                               'profile' => [L10n::t("View Profile"), Profile::zrl($rr['url'])],
+                               'profile' => [L10n::t("View Profile"), Contact::magicLink($rr['url'])],
                                'follow' => [L10n::t("Connect/Follow"), $connlnk]
                        ];
                }