diff options
author | friendica <info@friendica.com> | 2012-04-10 15:33:43 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-04-10 15:33:43 -0700 |
commit | 14d68a0dc031b271d26e735160651da52b55d562 (patch) | |
tree | dd3c31b557f4fb194b2dc57c723f744a895598bc /include/network.php | |
parent | 3c66816938bdc97490dee52e98433164aa9f81a7 (diff) | |
download | volse-hubzilla-14d68a0dc031b271d26e735160651da52b55d562.tar.gz volse-hubzilla-14d68a0dc031b271d26e735160651da52b55d562.tar.bz2 volse-hubzilla-14d68a0dc031b271d26e735160651da52b55d562.zip |
set default on get_avatar
Diffstat (limited to 'include/network.php')
-rw-r--r-- | include/network.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/network.php b/include/network.php index 58cef4756..23ef50b21 100644 --- a/include/network.php +++ b/include/network.php @@ -694,13 +694,20 @@ function allowed_email($email) { if(! function_exists('avatar_img')) { function avatar_img($email) { + + $a = get_app(); + $avatar['size'] = 175; $avatar['email'] = $email; $avatar['url'] = ''; + $avatar['success'] = false; call_hooks('avatar_lookup', $avatar); - logger('Avatar: ' . $avatar['email'] . ' ' . $avatar['url']); + if(! $avatar['success']) + $avatar['url'] = $a->get_baseurl() . '/images/person-175.jpg'; + + logger('Avatar: ' . $avatar['email'] . ' ' . $avatar['url'], LOGGER_DEBUG); return $avatar['url']; }} |