MDL-20636 Remove all references to global $QTYPES.
Except in the question types that have not yet been converted to the new question engine.
This commit is contained in:
+1
-1
@@ -622,7 +622,7 @@ class generator {
|
||||
require_once($CFG->libdir .'/questionlib.php');
|
||||
require_once($CFG->dirroot .'/mod/quiz/editlib.php');
|
||||
$questions = array();
|
||||
$questionsmenu = question_type_menu();
|
||||
$questionsmenu = question_bank::get_creatable_qtypes();
|
||||
$questiontypes = array();
|
||||
foreach ($questionsmenu as $qtype => $qname) {
|
||||
$questiontypes[] = $qtype;
|
||||
|
||||
Reference in New Issue
Block a user