diff options
author | Friendika <info@friendika.com> | 2011-02-23 14:04:00 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-02-23 14:04:00 -0800 |
commit | fdc469ae4ce385e21c396b76628e0d427e173e92 (patch) | |
tree | f53ead0affa5362ed3b3a6c4828146a92277e807 /mod | |
parent | b6ba303f4b7649454bbee9a4f798f74b1f49c871 (diff) | |
download | volse-hubzilla-fdc469ae4ce385e21c396b76628e0d427e173e92.tar.gz volse-hubzilla-fdc469ae4ce385e21c396b76628e0d427e173e92.tar.bz2 volse-hubzilla-fdc469ae4ce385e21c396b76628e0d427e173e92.zip |
move directory registration block before redirect
Diffstat (limited to 'mod')
-rw-r--r-- | mod/register.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mod/register.php b/mod/register.php index d97b3e0cd..d88536232 100644 --- a/mod/register.php +++ b/mod/register.php @@ -291,6 +291,13 @@ function register_post(&$a) { } } + if($netpublish && $a->config['register_policy'] != REGISTER_APPROVE) { + $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php'); + $url = $a->get_baseurl() . "/profile/$nickname"; + proc_run($php_path,"include/directory.php","$url"); + } + + if( $a->config['register_policy'] == REGISTER_OPEN ) { $email_tpl = load_view_file("view/register_open_eml.tpl"); $email_tpl = replace_macros($email_tpl, array( @@ -348,13 +355,6 @@ function register_post(&$a) { } - if($netpublish && $a->config['register_policy'] != REGISTER_APPROVE) { - $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php'); - $url = $a->get_baseurl() . "/profile/$nickname"; - if($url && strlen(get_config('system','directory_submit_url'))) - proc_run($php_path,"include/directory.php","$url"); - - } return; }} |