From: friendica Date: Tue, 10 Apr 2012 23:03:22 +0000 (-0700) Subject: slight change to get_avatar hook, also provided readable text for gravatar default... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9295f179b1da34ef6a00019a1fe8870373aefa49;p=friendica-addons.git slight change to get_avatar hook, also provided readable text for gravatar default options - the admin settings part of this plugin needs some work. --- diff --git a/gravatar/gravatar.php b/gravatar/gravatar.php index 4464cd2c..b9435a31 100644 --- a/gravatar/gravatar.php +++ b/gravatar/gravatar.php @@ -36,7 +36,7 @@ function gravatar_lookup($a, &$b) { // setting default value if nothing configured if(! $default_avatar) - $default_avatar = 'identicon'; // pseudo-random geometric pattern based on email hash + $default_avatar = 'identicon'; // default image will be a random pattern if(! $rating) $rating = 'g'; // suitable for display on all websites with any audience type @@ -47,7 +47,8 @@ function gravatar_lookup($a, &$b) { if ($default_avatar != "gravatar") $url .= '&d=' .$default_avatar; - $b['url'] = $url; + $b['url'] = $url; + $b['success'] = true; } /** @@ -67,12 +68,11 @@ function gravatar_plugin_admin (&$a, &$o) { // Available options for the select boxes $default_avatars = array( - 'gravatar' => 'Gravatar', - 'mm' => 'MM', - 'identicon' => 'Identicon', - 'monsterid' => 'Monsterid', - 'wavatar' => 'Wavatar', - 'retro' => 'Retro' + 'mm' => t('generic profile image'), + 'identicon' => t('random geometric pattern'), + 'monsterid' => t('monster face'), + 'wavatar' => t('computer generated face'), + 'retro' => t('retro arcade style face'), ); $ratings = array( 'g' => 'g',