]> git.mxchange.org Git - friendica.git/blobdiff - mod/hovercard.php
Merge pull request #3949 from annando/further-information
[friendica.git] / mod / hovercard.php
index a1d861067e91082acdb50e2b87bf42a9e01bf806..5542fe5b9837738da8f93fec7b6d525b5c4ae746 100644 (file)
@@ -11,8 +11,6 @@
 use Friendica\App;
 use Friendica\Core\Config;
 use Friendica\Model\GlobalContact;
-
-require_once "include/Contact.php";
 use Friendica\Object\Contact;
 
 function hovercard_init(App $a) {
@@ -52,14 +50,14 @@ function hovercard_content() {
        $nurl = normalise_link(GlobalContact::cleanContactUrl($profileurl));
        if($nurl) {
                // Search for contact data
-               $contact = get_contact_details_by_url($nurl);
+               $contact = Contact::getDetailsByURL($nurl);
        }
        if(!is_array($contact))
                return;
 
        // Get the photo_menu - the menu if possible contact actions
        if(local_user())
-               $actions = contact_photo_menu($contact);
+               $actions = Contact::photoMenu($contact);
 
 
        // Move the contact data to the profile array so we can deliver it to
@@ -81,7 +79,7 @@ function hovercard_content() {
 //             'server_url' => $contact["server_url"],
                'bd' => (($contact["birthday"] <= '0001-01-01') ? "" : $contact["birthday"]),
 //             'generation' => $contact["generation"],
-               'account_type' => account_type($contact),
+               'account_type' => Contact::getAccountType($contact),
                'actions' => $actions,
        );
        if($datatype == "html") {