MDL-32865 CLOZE Questions imported from another course end up with broken image links

This commit is contained in:
Jean-Michel Vedrine
2012-11-17 16:38:02 +01:00
parent 2d7c5eeeea
commit 7c86628de6
+2 -1
View File
@@ -440,7 +440,8 @@ class qformat_xml extends qformat_default {
$qo->name = $this->clean_question_name($this->import_text($question['#']['name'][0]['#']['text']));
$qo->questiontextformat = $questiontext['format'];
$qo->questiontext = $qo->questiontext['text'];
$qo->questiontextfiles = array();
$qo->questiontextfiles = $this->import_files($this->getpath($question,
array('#', 'questiontext', 0, '#', 'file'), array(), false));
// restore files in generalfeedback
$qo->generalfeedback = $this->getpath($question,