--- loncom/interface/spreadsheet/lonspreadsheet.pm 2004/04/26 14:06:00 1.37
+++ loncom/interface/spreadsheet/lonspreadsheet.pm 2004/10/12 20:51:54 1.39
@@ -1,5 +1,5 @@
#
-# $Id: lonspreadsheet.pm,v 1.37 2004/04/26 14:06:00 matthew Exp $
+# $Id: lonspreadsheet.pm,v 1.39 2004/10/12 20:51:54 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -293,8 +293,8 @@ sub handler {
# Check that the student is in their section?
if (exists($ENV{'request.course.sec'}) &&
$ENV{'request.course.sec'} ne '' ) {
- my $stu_sec = &Apache::lonnet::usection($domain,$name,
- $ENV{'request.course.id'});
+ my $stu_sec = &Apache::lonnet::getsection($domain,$name,
+ $ENV{'request.course.id'});
if ($stu_sec ne $ENV{'request.course.sec'}) {
$ENV{'user.error.msg'}=
$r->uri.":vgr:0:0:Requested student not in your section.";
@@ -473,8 +473,10 @@ ENDSCRIPT
}
$action_message .= '.';
}
- $r->print('
'.$spreadsheet->html_header().' | '.
- ''.$html." |
\n");
+ $r->print(''.
+ $spreadsheet->html_header().
+ ' | '.
+ ''.$html." |
\n");
if ($action_message ne '') {
$r->print(<