mirror of
https://github.com/friendica/friendica
synced 2024-11-13 01:42:59 +00:00
provide config option to not use gravatar during registration
This commit is contained in:
parent
6516de06df
commit
b4c277da22
1 changed files with 26 additions and 25 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue