diff options
author | Friendika <info@friendika.com> | 2010-11-18 02:59:59 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-11-18 02:59:59 -0800 |
commit | abc6199c175986c6d3f7b8b7944f1c3c1ec26163 (patch) | |
tree | d0cbb01228f693e35dc1039c47fa82484fd41d24 /mod/register.php | |
parent | b4c277da22442cdb2d424490eee9ed9fcedf2c76 (diff) | |
download | volse-hubzilla-abc6199c175986c6d3f7b8b7944f1c3c1ec26163.tar.gz volse-hubzilla-abc6199c175986c6d3f7b8b7944f1c3c1ec26163.tar.bz2 volse-hubzilla-abc6199c175986c6d3f7b8b7944f1c3c1ec26163.zip |
more pre-install checks, try and create db if doesn't exist
Diffstat (limited to 'mod/register.php')
-rw-r--r-- | mod/register.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mod/register.php b/mod/register.php index ba6cffea0..3b26f6971 100644 --- a/mod/register.php +++ b/mod/register.php @@ -205,9 +205,11 @@ function register_post(&$a) { } - require_once('include/Photo.php'); - $nograv = get_config('system','no_gravatar'); - if(! $nograv) { + $use_gravatar = ((get_config('system','no_gravatar')) ? false : true); + if($use_gravatar) { + + require_once('include/Photo.php'); + $photo = gravatar_img($email); $photo_failure = false; @@ -246,6 +248,7 @@ function register_post(&$a) { } } } + if( $a->config['register_policy'] == REGISTER_OPEN ) { $email_tpl = load_view_file("view/register_open_eml.tpl"); $email_tpl = replace_macros($email_tpl, array( @@ -302,7 +305,6 @@ function register_post(&$a) { } } - return; }} |