Index: openacs-4/packages/acs-tcl/tcl/defs-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/defs-procs.tcl,v diff -u -r1.25 -r1.26 --- openacs-4/packages/acs-tcl/tcl/defs-procs.tcl 17 May 2003 10:04:18 -0000 1.25 +++ openacs-4/packages/acs-tcl/tcl/defs-procs.tcl 14 Aug 2003 20:38:03 -0000 1.26 @@ -74,16 +74,15 @@ ad_proc ad_pvt_home {} { This is the URL of a user's private workspace on the system, usually - /pvt/home.tcl + [subsite]/pvt/home.tcl } { - return [ad_parameter -package_id [ad_acs_kernel_id] HomeURL] + return "[subsite::get_element -element url -notrailing][ad_parameter -package_id [ad_acs_kernel_id] HomeURL]" } ad_proc ad_admin_home {} { - Returns the directory for the admin home. Currently hard-coded to /admin - (should this be changed?). + Returns the directory for the admin home. } { - return "/admin" + return "[subsite::get_element -element url]admin" } # is this accurate? (rbm, aug 2002) @@ -109,10 +108,10 @@ @return a link to the user's workspace if the user is logged in. Otherwise, a link to the page root. } { if { [ad_get_user_id] != 0 } { - return "[ad_system_name]" + return "[subsite::get_element -element name]" } else { # we don't know who this person is - return "[ad_system_name]" + return "[subsite::get_element -element name]" } } @@ -143,7 +142,8 @@ } { @return the url for the community member page of a particular user } { - return "[ad_parameter -package_id [ad_acs_kernel_id] CommunityMemberURL]?[export_vars user_id]" + return "[subsite::get_element -element url -notrailing][ad_parameter \ + -package_id [ad_acs_kernel_id] CommunityMemberURL]?[export_vars user_id]" } ad_proc -public acs_community_member_link { @@ -186,7 +186,8 @@ } { @return the url for the community member admin page of a particular user } { - return "[ad_parameter -package_id [ad_acs_kernel_id] CommunityMemberAdminURL]?[export_vars user_id]" + return "[subsite::get_element -element url -notrailing][ad_parameter \ + -package_id [ad_acs_kernel_id] CommunityMemberAdminURL]?[export_vars user_id]" } ad_proc -public acs_community_member_admin_link { @@ -379,11 +380,13 @@ set please_correct "them" } + subsite::get -array subsite_info + doc_return 200 text/html "[ad_header_with_extra_stuff "Problem with Your Input" "" ""]

Problem with Your Input

-to [ad_system_name] +to $subsite_info(instance_name)