mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:50:12 +00:00
Move multiple functions
move multiple smaller functions
This commit is contained in:
parent
cd3643d174
commit
1eb7c19c1e
11 changed files with 24 additions and 56 deletions
|
@ -1510,7 +1510,7 @@ class Probe
|
|||
*/
|
||||
private static function mail($uri, $uid)
|
||||
{
|
||||
if (!validate_email($uri)) {
|
||||
if (!Network::validateEmail($uri)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1544,7 +1544,7 @@ class Probe
|
|||
$data["network"] = NETWORK_MAIL;
|
||||
$data["name"] = substr($uri, 0, strpos($uri, '@'));
|
||||
$data["nick"] = $data["name"];
|
||||
$data["photo"] = avatar_img($uri);
|
||||
$data["photo"] = Network::avatarImg($uri);
|
||||
$data["url"] = 'mailto:'.$uri;
|
||||
$data["notify"] = 'smtp '.random_string();
|
||||
$data["poll"] = 'email '.random_string();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue