remove the obsolete avatar_img function (gravatar/libravatar lookup)
This commit is contained in:
parent
e6de9bfa4e
commit
c4a3487f0c
@ -1 +0,0 @@
|
|||||||
[h2]avatar_lookup[/h2]
|
|
@ -58,9 +58,6 @@ Hooks allow plugins/addons to "hook into" the code at many points and alter the
|
|||||||
[zrl=[baseurl]/help/hook/authenticate]authenticate[/zrl]
|
[zrl=[baseurl]/help/hook/authenticate]authenticate[/zrl]
|
||||||
Can provide alternate authentication mechanisms
|
Can provide alternate authentication mechanisms
|
||||||
|
|
||||||
[zrl=[baseurl]/help/hook/avatar_lookup]avatar_lookup[/zrl]
|
|
||||||
Used for "gravatar" or libravatar profile photo lookup.
|
|
||||||
|
|
||||||
[zrl=[baseurl]/help/hook/bb2diaspora]bb2diaspora[/zrl]
|
[zrl=[baseurl]/help/hook/bb2diaspora]bb2diaspora[/zrl]
|
||||||
called when converting bbcode to markdown
|
called when converting bbcode to markdown
|
||||||
|
|
||||||
|
@ -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) {
|
function parse_xml_string($s,$strict = true) {
|
||||||
if($strict) {
|
if($strict) {
|
||||||
if(! strstr($s,'<?xml'))
|
if(! strstr($s,'<?xml'))
|
||||||
|
Reference in New Issue
Block a user