aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2012-02-21 00:54:34 +0100
committerKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2012-04-09 21:22:09 +0200
commit93ffba58cc10fc793821ba16de88cdfb271ea5b8 (patch)
treea80a9f63781eaeb92eb8949e164d7a7659b33d61 /include/network.php
parentd25a9df99600b0ce204d88114f07f5ed1db9d5d3 (diff)
downloadvolse-hubzilla-93ffba58cc10fc793821ba16de88cdfb271ea5b8.tar.gz
volse-hubzilla-93ffba58cc10fc793821ba16de88cdfb271ea5b8.tar.bz2
volse-hubzilla-93ffba58cc10fc793821ba16de88cdfb271ea5b8.zip
Rename gravatar_img() more generic to avatar_img().
I would like to extend the Gravatar support to also use Libravatar, a decentralized avatar service. First step to extract Gravatar from core and put it into its own plugin. Later the Libravatar plugin can be done, too as a plugin.
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/network.php b/include/network.php
index 38d0980d5..59705634b 100644
--- a/include/network.php
+++ b/include/network.php
@@ -692,13 +692,13 @@ function allowed_email($email) {
}}
-if(! function_exists('gravatar_img')) {
-function gravatar_img($email) {
+if(! function_exists('avatar_img')) {
+function avatar_img($email) {
$size = 175;
$opt = 'identicon'; // psuedo-random geometric pattern if not found
$rating = 'pg';
$hash = md5(trim(strtolower($email)));
-
+
$url = 'http://www.gravatar.com/avatar/' . $hash . '.jpg'
. '?s=' . $size . '&d=' . $opt . '&r=' . $rating;