MDL-47494 ddmarker: Export of ddmarker did got noofdrags wrong. #9523

This commit is contained in:
Tim Hunt
2014-01-20 17:27:09 +00:00
parent 5bec9816a1
commit 9d26e5b4ec
+2 -2
View File
@@ -298,11 +298,11 @@ class qtype_ddmarker extends qtype_ddtoimage_base {
$fs->get_area_files($contextid, 'qtype_ddmarker', 'dragimage', $drag->id);
$output .= " <drag>\n";
$output .= " <no>{$drag->no}</no>\n";
$output .= $format->writetext($drag->label, 3)."\n";
$output .= $format->writetext($drag->label, 3);
if ($drag->infinite) {
$output .= " <infinite/>\n";
}
$output .= " <noofdrags>{$drag->no}</noofdrags>\n";
$output .= " <noofdrags>{$drag->noofdrags}</noofdrags>\n";
$output .= " </drag>\n";
}
foreach ($question->options->drops as $drop) {