1
0
Fork 0

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.
This commit is contained in:
Klaus Weidenbach 2012-02-21 00:54:34 +01:00
commit 93ffba58cc
3 changed files with 7 additions and 7 deletions

View file

@ -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 );