aboutsummaryrefslogtreecommitdiffstats
path: root/mod
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 /mod
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 'mod')
-rw-r--r--mod/register.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/register.php b/mod/register.php
index 630c0a675..8812ebadb 100644
--- a/mod/register.php
+++ b/mod/register.php
@@ -324,7 +324,7 @@ function register_post(&$a) {
require_once('include/Photo.php');
if(($use_gravatar) && (! strlen($photo)))
- $photo = gravatar_img($email);
+ $photo = avatar_img($email);
$photo_failure = false;
$filename = basename($photo);
@@ -333,7 +333,7 @@ function register_post(&$a) {
if($img->is_valid()) {
$img->scaleImageSquare(175);
-
+
$hash = photo_new_resource();
$r = $img->store($newuid, 0, $hash, $filename, t('Profile Photos'), 4 );