Browse files

Merge branch 'MDL-29366_21' of git://github.com/timhunt/moodle into M…

…OODLE_21_STABLE
  • Loading branch information...
2 parents 5585910 + e9197a3 commit 955f15a71f75f6d1c6780d7a192288f5d220f775 Sam Hemelryk committed Sep 19, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 question/format/xml/format.php
View
4 question/format/xml/format.php
@@ -687,6 +687,8 @@ public function import_essay($question) {
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 @@ public function writequestion($question) {
$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;

0 comments on commit 955f15a

Please sign in to comment.