Index: openacs-4/packages/dotlrn/www/community-deregister.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/community-deregister.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/dotlrn/www/community-deregister.tcl 9 Oct 2001 15:02:49 -0000 1.1 +++ openacs-4/packages/dotlrn/www/community-deregister.tcl 10 Jan 2002 19:30:18 -0000 1.2 @@ -1,17 +1,23 @@ - ad_page_contract { deregister @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::remove_user $community_id $user_id -ns_returnredirect ./ +ns_returnredirect $referer