]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
Change called method names
[friendica.git] / boot.php
index 698587eb59ef6fdca5b8577a8341f62f6e42b559..f0ad74ed5848eb97af38a660765214817b1005d2 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -984,10 +984,10 @@ function public_contact()
        if (!$public_contact_id && x($_SESSION, 'authenticated')) {
                if (x($_SESSION, 'my_address')) {
                        // Local user
-                       $public_contact_id = intval(get_contact($_SESSION['my_address'], 0));
+                       $public_contact_id = intval(Contact::getIdForURL($_SESSION['my_address'], 0));
                } elseif (x($_SESSION, 'visitor_home')) {
                        // Remote user
-                       $public_contact_id = intval(get_contact($_SESSION['visitor_home'], 0));
+                       $public_contact_id = intval(Contact::getIdForURL($_SESSION['visitor_home'], 0));
                }
        } elseif (!x($_SESSION, 'authenticated')) {
                $public_contact_id = false;