--- loncom/interface/lonhelper.pm 2005/07/07 04:32:59 1.108 +++ loncom/interface/lonhelper.pm 2005/07/08 17:32:06 1.109 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.108 2005/07/07 04:32:59 albertel Exp $ +# $Id: lonhelper.pm,v 1.109 2005/07/08 17:32:06 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3402,12 +3402,9 @@ sub render { } else { # FIXME: This is probably wasteful! Store the name! my $classlist = Apache::loncoursedata::get_classlist(); - my $username = $vars->{USER_NAME}; - # Chop off everything after the last colon (section) - my ($uname,$udom)=split(':',$username); + my ($uname,$udom)=split(':',$vars->{USER_NAME}); my $name = $classlist->{$uname.':'.$udom}->[6]; $result .= '
  • '.&mt('for [_1]',"$name").'
  • '; - my ($uname, $udom) = split /:/, $vars->{USER_NAME}; $result .= "&\"") . "' />\n"; $result .= "