--- loncom/interface/spreadsheet/lonspreadsheet.pm 2003/09/04 15:17:41 1.22 +++ loncom/interface/spreadsheet/lonspreadsheet.pm 2003/09/30 15:40:09 1.26 @@ -1,5 +1,5 @@ # -# $Id: lonspreadsheet.pm,v 1.22 2003/09/04 15:17:41 matthew Exp $ +# $Id: lonspreadsheet.pm,v 1.26 2003/09/30 15:40:09 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -54,12 +54,16 @@ built-in functions. package Apache::lonspreadsheet; use strict; +use warnings FATAL=>'all'; +no warnings 'uninitialized'; use Apache::classcalc(); use Apache::studentcalc(); use Apache::assesscalc(); use Apache::Constants qw(:common :http); use Apache::lonnet; use Apache::lonhtmlcommon; +use Apache::lonlocal; +use Apache::loncoursedata(); use HTML::Entities(); ## @@ -103,9 +107,8 @@ sub file_dialogs { if ($save_status ne 'ok') { $message .= "An error occurred while saving the spreadsheet". "There error is:".$save_status; - return $result; } else { - $message .= "Spreadsheet saved as ".$ENV{'form.savefilename'}; + $message .= "Spreadsheet saved as ".$spreadsheet->filename(); } } elsif (exists($ENV{'form.newformula'}) && exists($ENV{'form.cell'}) && @@ -168,6 +171,10 @@ END $load_dialog .= "\n
'. + $r->print(' | '. ' | '); } if ($allowed_to_view) {