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:
Jean-Michel Vedrine 2013-04-22 16:21:54 +02:00
parent 3a8c4380c0
commit b31d6664e6
2 changed files with 10 additions and 9 deletions

View file

@ -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)));
}
}