]> git.mjollnir.org Git - moodle.git/commitdiff
Fixes for file names
authormoodler <moodler>
Mon, 28 Jul 2003 03:26:32 +0000 (03:26 +0000)
committermoodler <moodler>
Mon, 28 Jul 2003 03:26:32 +0000 (03:26 +0000)
mod/quiz/report/simplestat/report.php

index dc79e301b4006f8c0c5305ec62528175c8c1824b..b7fbdb366e35538734181a1172f2723caa96e7b1 100644 (file)
@@ -110,7 +110,7 @@ class quiz_report extends quiz_default_report {
                 $myxls->InsertNumber($average[$i]);
             }
 
-            $myxls->SendFileName("$quiz->name simplestat");
+            $myxls->SendFileName("$course->shortname $quiz->name");
         
             exit;
         }
@@ -121,7 +121,7 @@ class quiz_report extends quiz_default_report {
         /// Print header to force download
     
             header("Content-Type: application/download\n"); 
-            header("Content-Disposition: attachment; filename=\"$course->shortname $strgrades.txt\"");
+            header("Content-Disposition: attachment; filename=\"$course->shortname $quiz->name.txt\"");
 
         /// Print names of all the fields