fixed bug that must have crept in during recent refactor. $course not being passed

to export format object.
export file extension can now be selected by overriding method in format.php
This commit is contained in:
thepurpleblob
2004-08-06 11:11:05 +00:00
parent 3102622add
commit 3cb21c9388
+2 -2
View 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");
}
@@ -109,7 +109,7 @@
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\">";