Index: openacs-4/packages/theme-selva/tcl/selva-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/theme-selva/tcl/selva-procs.tcl,v diff -u -r1.5.2.10 -r1.5.2.11 --- openacs-4/packages/theme-selva/tcl/selva-procs.tcl 13 Nov 2006 23:12:08 -0000 1.5.2.10 +++ openacs-4/packages/theme-selva/tcl/selva-procs.tcl 15 Nov 2006 01:03:01 -0000 1.5.2.11 @@ -76,13 +76,27 @@ set navbar "" @@ -132,7 +155,6 @@ dotlrn-master template } { -ns_log Notice "Huh? in portal_subnavbar ..." set dotlrn_url [dotlrn::get_url] set community_id [dotlrn_community::get_community_id] set control_panel_name control-panel @@ -145,9 +167,9 @@ set link "[dotlrn::get_url]/" if {[dotlrn::user_p -user_id $user_id] && - [string first $link [ad_conn url]] != -1 } { - # this user is a dotlrn user, show their personal portal - # subnavbar, including the control panel link + [ad_get_client_property dotlrn home_tab_selected_p] } { + # this user is a dotlrn user, we've selected the home tab, + # show their personal portal subnavbar, including the control panel link set portal_id [dotlrn::get_portal_id -user_id $user_id] set show_control_panel 1 } else {