mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +02:00
MDL-39283 GIFT and XML question export broken for unsupported qtypes
Do no write any data to the export for unsupported qtypes
This commit is contained in:
parent
3a8c4380c0
commit
b31d6664e6
2 changed files with 10 additions and 9 deletions
|
@ -761,10 +761,6 @@ class qformat_gift extends qformat_default {
|
|||
// Check for plugins
|
||||
if ($out = $this->try_exporting_using_qtypes($question->qtype, $question)) {
|
||||
$expout .= $out;
|
||||
} else {
|
||||
$expout .= "Question type $question->qtype is not supported\n";
|
||||
echo $OUTPUT->notification(get_string('nohandler', 'qformat_gift',
|
||||
question_bank::get_qtype_name($question->qtype)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue