mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
Merge branch 'MDL-29366' of git://github.com/timhunt/moodle
This commit is contained in:
commit
4cc14ab11e
@ -687,6 +687,8 @@ class qformat_xml extends qformat_default {
|
||||
array('#', 'graderinfo', 0, '#', 'text', 0, '#'), '', true);
|
||||
$qo->graderinfo['format'] = $this->trans_format($this->getpath($question,
|
||||
array('#', 'graderinfo', 0, '@', 'format'), 'moodle_auto_format'));
|
||||
$qo->graderinfo['files'] = $this->import_files($this->getpath($question,
|
||||
array('#', 'graderinfo', '0', '#', 'file'), array()));
|
||||
|
||||
return $qo;
|
||||
}
|
||||
@ -1255,6 +1257,8 @@ class qformat_xml extends qformat_default {
|
||||
$expout .= " <graderinfo " .
|
||||
$this->format($question->options->graderinfoformat) . ">\n";
|
||||
$expout .= $this->writetext($question->options->graderinfo, 3);
|
||||
$expout .= $this->writefiles($fs->get_area_files($contextid, 'qtype_essay',
|
||||
'graderinfo', $question->id));
|
||||
$expout .= " </graderinfo>\n";
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user