Index: openacs-4/packages/dotlrn/www/community-register.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/community-register.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/dotlrn/www/community-register.tcl 8 Dec 2001 01:22:40 -0000 1.3 +++ openacs-4/packages/dotlrn/www/community-register.tcl 10 Jan 2002 19:30:18 -0000 1.4 @@ -2,15 +2,22 @@ register @author Ben Adida (ben@openforce.net) + @author yon (yon@openforce.net) @creation-date 2001-10-06 -} { + @version $Id$ +} -query { + {referer "./"} + {community_id ""} } ad_maybe_redirect_for_registration set user_id [ad_conn user_id] -set community_id [dotlrn_community::get_community_id] +if {[empty_string_p $community_id]} { + set community_id [dotlrn_community::get_community_id] +} + dotlrn_community::add_user $community_id $user_id -ad_returnredirect ./ +ad_returnredirect $referer