Skip to content
Browse files

FIXED: was calling an old quiz class name for importing. Updated it t…

…o call the new class name
  • Loading branch information...
1 parent 6deece3 commit 9160e17321f437dfb71fe907671672d781e8690e michaelpenne committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/lesson/import.php
View
3 mod/lesson/import.php
@@ -53,7 +53,8 @@
require("$CFG->dirroot/mod/quiz/lib.php"); // for the constants used in quiz/format/<format>/format.php
require("$CFG->dirroot/mod/quiz/format/$form->format/format.php");
- $format = new quiz_file_format();
+ $classname = "quiz_format_$form->format";
+ $format = new $classname();
if (! $format->importpreprocess()) { // Do anything before that we need to
error("Error occurred during pre-processing!");

0 comments on commit 9160e17

Please sign in to comment.
Something went wrong with that request. Please try again.