Index: openacs-4/packages/dotlrn/www/community-applet-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-applet-add.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/dotlrn/www/community-applet-add.tcl 10 Jan 2002 00:11:38 -0000 1.3 +++ openacs-4/packages/dotlrn/www/community-applet-add.tcl 10 Jan 2002 19:30:18 -0000 1.4 @@ -1,23 +1,24 @@ - ad_page_contract { Add an applet to a community @author Ben Adida (ben@openforce.net) + @author yon (yon@openforce.net) @creation-date 2001-10-08 -} { + @version $Id$ +} -query { applet_key + {referer "one-community-admin"} } set community_id [dotlrn_community::get_community_id] # Check access if {![dotlrn_community::admin_access_p $community_id]} { - ns_returnredirect / - return + ad_returnredirect / + ad_script_abort } # Add the applet dotlrn_community::add_applet_to_community $community_id $applet_key -# Get back to where you once belonged -ns_returnredirect community-applets?community_id=$community_id +ad_returnredirect $referer