Bug 6031 - missing parameter for warningmissingtype in libquestionlib.php. Merged from MOODLE_16_STABLE.
This commit is contained in:
+2
-2
@@ -518,7 +518,7 @@ function get_question_options(&$questions) {
|
||||
foreach ($keys as $i) {
|
||||
if (!array_key_exists($questions[$i]->qtype, $QTYPES)) {
|
||||
$questions[$i]->qtype = 'missingtype';
|
||||
$questions[$i]->questiontext = get_string('warningmissingtype').$questions[$i]->questiontext;
|
||||
$questions[$i]->questiontext = get_string('warningmissingtype', 'quiz').$questions[$i]->questiontext;
|
||||
}
|
||||
|
||||
// set name prefix
|
||||
@@ -531,7 +531,7 @@ function get_question_options(&$questions) {
|
||||
} else { // deal with single question
|
||||
if (!array_key_exists($questions->qtype, $QTYPES)) {
|
||||
$questions->qtype = 'missingtype';
|
||||
$questions[$i]->questiontext = get_string('warningmissingtype').$questions[$i]->questiontext;
|
||||
$questions[$i]->questiontext = get_string('warningmissingtype', 'quiz').$questions[$i]->questiontext;
|
||||
}
|
||||
$questions->name_prefix = question_make_name_prefix($questions->id);
|
||||
return $QTYPES[$questions->qtype]->get_question_options($questions);
|
||||
|
||||
Reference in New Issue
Block a user