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:
Hypolite Petovan 2017-11-19 17:03:39 -05:00
parent b92fc24ff0
commit ec02af593d
48 changed files with 133 additions and 133 deletions

View file

@ -538,7 +538,7 @@ class Contact extends BaseObject
*
* @return integer Contact ID
*/
public static function getIdForUrl($url, $uid = 0, $no_update = false)
public static function getIdForURL($url, $uid = 0, $no_update = false)
{
logger("Get contact data for url " . $url . " and user " . $uid . " - " . System::callstack(), LOGGER_DEBUG);
@ -603,7 +603,7 @@ class Contact extends BaseObject
}
if (!$contact_id && ($data["alias"] != '') && ($data["alias"] != $url)) {
$contact_id = self::getIdForUrl($data["alias"], $uid, true);
$contact_id = self::getIdForURL($data["alias"], $uid, true);
}
$url = $data["url"];