From c4a3487f0cee6391419fd73f2f89f074731a064c Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 9 Nov 2015 20:29:36 -0800 Subject: remove the obsolete avatar_img function (gravatar/libravatar lookup) --- include/network.php | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'include/network.php') diff --git a/include/network.php b/include/network.php index c67c019ef..65599bd05 100644 --- a/include/network.php +++ b/include/network.php @@ -526,28 +526,6 @@ function allowed_email($email) { -function avatar_img($email) { - - $avatar = array(); - $a = get_app(); - - $avatar['size'] = 300; - $avatar['email'] = $email; - $avatar['url'] = ''; - $avatar['success'] = false; - - call_hooks('avatar_lookup', $avatar); - - if (! $avatar['success']) - $avatar['url'] = $a->get_baseurl() . '/' . get_default_profile_photo(); - - logger('Avatar: ' . $avatar['email'] . ' ' . $avatar['url'], LOGGER_DEBUG); - - return $avatar['url']; -} - - - function parse_xml_string($s,$strict = true) { if($strict) { if(! strstr($s,'