FIXED: was calling an old quiz class name for importing. Updated it to call the new class name
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
require_once("../../config.php");
|
||||
require_once("lib.php");
|
||||
require_once("locallib.php");
|
||||
|
||||
$id = required_param('id', PARAM_INT); // Course Module ID
|
||||
$pageid = optional_param('pageid', '', PARAM_INT); // Page ID
|
||||
@@ -50,10 +51,11 @@
|
||||
}
|
||||
|
||||
require("format.php"); // Parent class
|
||||
require("$CFG->dirroot/mod/quiz/lib.php"); // for the constants used in quiz/format/<format>/format.php
|
||||
require("$CFG->dirroot/mod/quiz/locallib.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!");
|
||||
|
||||
Reference in New Issue
Block a user