provide config option to not use gravatar during registration

This commit is contained in:
Friendika 2010-11-17 23:24:43 -08:00
parent 6516de06df
commit b4c277da22

View file

@ -206,7 +206,8 @@ function register_post(&$a) {
} }
require_once('include/Photo.php'); require_once('include/Photo.php');
$nograv = get_config('system','no_gravatar');
if(! $nograv) {
$photo = gravatar_img($email); $photo = gravatar_img($email);
$photo_failure = false; $photo_failure = false;
@ -244,7 +245,7 @@ function register_post(&$a) {
); );
} }
} }
}
if( $a->config['register_policy'] == REGISTER_OPEN ) { if( $a->config['register_policy'] == REGISTER_OPEN ) {
$email_tpl = load_view_file("view/register_open_eml.tpl"); $email_tpl = load_view_file("view/register_open_eml.tpl");
$email_tpl = replace_macros($email_tpl, array( $email_tpl = replace_macros($email_tpl, array(