From 3cb21c93883beb49756148debaec5dd6fec6c44e Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Fri, 6 Aug 2004 11:11:05 +0000 Subject: [PATCH] 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 --- mod/quiz/export.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/quiz/export.php b/mod/quiz/export.php index 8b6ad982e2..bfb5dac7cc 100644 --- a/mod/quiz/export.php +++ b/mod/quiz/export.php @@ -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 ""; print_string("exportname", "quiz" ); echo ":"; - echo ""; + echo ""; echo ""; echo ""; -- 2.39.5