--- loncom/interface/lonmenu.pm 2012/08/07 01:35:47 1.369.2.20 +++ loncom/interface/lonmenu.pm 2012/08/27 15:53:40 1.369.2.22 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.369.2.20 2012/08/07 01:35:47 raeburn Exp $ +# $Id: lonmenu.pm,v 1.369.2.22 2012/08/27 15:53:40 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -443,8 +443,10 @@ sub secondary_menu { } $menu =~ s/\[uname\]/$$author{user}/g; $menu =~ s/\[udom\]/$$author{dom}/g; - - return "
"; + if ($menu) { + $menu = " "; + } + return $menu; } sub create_submenu { @@ -758,7 +760,7 @@ sub innerregister { ### ### # Prepare the rest of the buttons - my ($menuitems,$got_prt,$got_wishlist); + my ($menuitems,$got_prt,$got_wishlist,$cstritems); if ($const_space) { # # We are in construction space @@ -778,12 +780,16 @@ sub innerregister { # Probably should be in mydesk.tab # $menuitems=(<