Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-32865 CLOZE Questions imported from another course end up with br…

…oken image links
  • Loading branch information...
commit 7c86628de65f3c7fbcdaa286ffe82da05c306623 1 parent 2d7c5ee
Jean-Michel Vedrine authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  question/format/xml/format.php
View
3  question/format/xml/format.php
@@ -440,7 +440,8 @@ public function import_multianswer($question) {
$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,
Please sign in to comment.
Something went wrong with that request. Please try again.