Change called method names
- Add GlobalContact::getRandomUrl - Rename Contact::getIdForURL - Rename Diaspora::sendUnshare - Remove unused parameter $self in Contact::terminateFriendship
This commit is contained in:
parent
b92fc24ff0
commit
ec02af593d
48 changed files with 133 additions and 133 deletions
|
|
@ -76,7 +76,7 @@ function dirfind_content(App $a, $prefix = "") {
|
|||
$objresult->tags = "";
|
||||
$objresult->network = $user_data["network"];
|
||||
|
||||
$contact = get_contact_details_by_url($user_data["url"], local_user());
|
||||
$contact = Contact::getDetailsByURL($user_data["url"], local_user());
|
||||
$objresult->cid = $contact["cid"];
|
||||
|
||||
$j->results[] = $objresult;
|
||||
|
|
@ -150,7 +150,7 @@ function dirfind_content(App $a, $prefix = "") {
|
|||
continue;
|
||||
}
|
||||
|
||||
$result = get_contact_details_by_url($result["url"], local_user(), $result);
|
||||
$result = Contact::getDetailsByURL($result["url"], local_user(), $result);
|
||||
|
||||
if ($result["name"] == "") {
|
||||
$urlparts = parse_url($result["url"]);
|
||||
|
|
@ -194,7 +194,7 @@ function dirfind_content(App $a, $prefix = "") {
|
|||
|
||||
$alt_text = "";
|
||||
|
||||
$contact_details = get_contact_details_by_url($jj->url, local_user());
|
||||
$contact_details = Contact::getDetailsByURL($jj->url, local_user());
|
||||
|
||||
$itemurl = (($contact_details["addr"] != "") ? $contact_details["addr"] : $jj->url);
|
||||
|
||||
|
|
@ -205,7 +205,7 @@ function dirfind_content(App $a, $prefix = "") {
|
|||
$contact = q("SELECT * FROM `contact` WHERE `id` = %d",
|
||||
intval($jj->cid));
|
||||
if ($contact) {
|
||||
$photo_menu = contact_photo_menu($contact[0]);
|
||||
$photo_menu = Contact::photoMenu($contact[0]);
|
||||
$details = _contact_detail_for_template($contact[0]);
|
||||
$alt_text = $details['alt_text'];
|
||||
} else {
|
||||
|
|
@ -235,7 +235,7 @@ function dirfind_content(App $a, $prefix = "") {
|
|||
'details' => $contact_details['location'],
|
||||
'tags' => $contact_details['keywords'],
|
||||
'about' => $contact_details['about'],
|
||||
'account_type' => account_type($contact_details),
|
||||
'account_type' => Contact::getAccountType($contact_details),
|
||||
'network' => network_to_name($jj->network, $jj->url),
|
||||
'id' => ++$id,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue