]> git.mxchange.org Git - friendica.git/blobdiff - include/contact_widgets.php
Update function calls
[friendica.git] / include / contact_widgets.php
index aa1bc2436a940d8c5983de6a5425d6f9b5bfb5b7..d5f791fee7d0618eaabc6c7f544fa6b1501bc859 100644 (file)
@@ -223,13 +223,13 @@ function common_friends_visitor_widget($profile_uid)
        }
 
        if (!$cid) {
-               if (get_my_url()) {
+               if (Profile::getMyURL()) {
                        $contact = dba::selectFirst('contact', ['id'],
-                                       ['nurl' => normalise_link(get_my_url()), 'uid' => $profile_uid]);
+                                       ['nurl' => normalise_link(Profile::getMyURL()), 'uid' => $profile_uid]);
                        if (DBM::is_result($contact)) {
                                $cid = $contact['id'];
                        } else {
-                               $gcontact = dba::selectFirst('gcontact', ['id'], ['nurl' => normalise_link(get_my_url())]);
+                               $gcontact = dba::selectFirst('gcontact', ['id'], ['nurl' => normalise_link(Profile::getMyURL())]);
                                if (DBM::is_result($gcontact)) {
                                        $zcid = $gcontact['id'];
                                }