MDL-71696 core_question: class autoload changes

This commit implements some class autoloading
fixes to align with core question structure.
This commit is contained in:
Safat Shahin
2022-02-03 22:22:50 +11:00
parent 3008edd366
commit bf55e5a481
38 changed files with 61 additions and 92 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ $catcontext = context::instance_by_id($category->contextid);
require_capability('moodle/question:useall', $catcontext);
$thiscontext = context_module::instance($cm->id);
$contexts = new core_question\lib\question_edit_contexts($thiscontext);
$contexts = new core_question\local\bank\question_edit_contexts($thiscontext);
// Create the editing form.
$mform = new mod_quiz\form\randomquestion_form(new moodle_url('/mod/quiz/editrandom.php'), ['contexts' => $contexts]);