--- loncom/interface/spreadsheet/studentcalc.pm 2003/12/08 19:58:39 1.25 +++ loncom/interface/spreadsheet/studentcalc.pm 2004/11/02 20:48:02 1.26 @@ -1,5 +1,5 @@ # -# $Id: studentcalc.pm,v 1.25 2003/12/08 19:58:39 matthew Exp $ +# $Id: studentcalc.pm,v 1.26 2004/11/02 20:48:02 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -111,12 +111,8 @@ sub get_title { my @title = (); # # Determine the students name - my %userenv = &Apache::loncoursedata::GetUserName($self->{'name'}, - $self->{'domain'}); - my $name = join(' ', - @userenv{'firstname','middlename','lastname','generation'}); - $name =~ s/\s+$//; - + my $name = &Apache::loncommon::plainname($self->{'name'}, + $self->{'domain'}); push (@title,$name); push (@title,$self->{'coursedesc'}); push (@title,&Apache::lonlocal::locallocaltime(time));