]> git.mjollnir.org Git - moodle.git/commitdiff
fixed bug that must have crept in during recent refactor. $course not being passed
authorthepurpleblob <thepurpleblob>
Fri, 6 Aug 2004 11:11:05 +0000 (11:11 +0000)
committerthepurpleblob <thepurpleblob>
Fri, 6 Aug 2004 11:11:05 +0000 (11:11 +0000)
to export format object.
export file extension can now be selected by overriding method in format.php

mod/quiz/export.php

index 8b6ad982e2dc626f9edb326d54837adf52a059a1..bfb5dac7cc5b200f3fd442f7c1ddecd129c771d4 100644 (file)
@@ -44,7 +44,7 @@
 
     $format = new quiz_file_format();
 
-    if (! $format->exportpreprocess($category)) {             // Do anything before that we need to
+    if (! $format->exportpreprocess($category, $course)) {             // Do anything before that we need to
        error("Error occurred during pre-processing!", 
              "$CFG->wwwroot/mod/quiz/export.php?category=$category->id");
     }
     echo "<tr><td align=\"right\">";
     print_string("exportname", "quiz" );
     echo ":</td><td>";
-    echo "<input type=\"text\" name=\"exportfilename\" value=\"$exportfilename\">";
+    echo "<input type=\"text\" size=\"40\" name=\"exportfilename\" value=\"$exportfilename\">";
     echo "</td></tr>";
 
     echo "<tr><td align=\"center\">";