--- loncom/interface/spreadsheet/lonspreadsheet.pm 2003/09/04 15:17:41 1.22 +++ loncom/interface/spreadsheet/lonspreadsheet.pm 2003/09/16 15:41:16 1.24 @@ -1,5 +1,5 @@ # -# $Id: lonspreadsheet.pm,v 1.22 2003/09/04 15:17:41 matthew Exp $ +# $Id: lonspreadsheet.pm,v 1.24 2003/09/16 15:41:16 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -54,6 +54,8 @@ built-in functions. package Apache::lonspreadsheet; use strict; +use warnings FATAL=>'all'; +no warnings 'uninitialized'; use Apache::classcalc(); use Apache::studentcalc(); use Apache::assesscalc(); @@ -103,9 +105,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 +169,10 @@ END $load_dialog .= "\n \n\n"; # $result .=< + File Dialogs + --> @@ -180,6 +185,9 @@ END
+ END return ($result,$message); }