From 69caa833450d8609fdd62ca2d0d0f04568b9c258 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Tue, 8 Aug 2023 08:08:33 +0100 Subject: [PATCH] MDL-78939 qformat_xml: fix reference to calculated question files. --- question/format/xml/format.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/question/format/xml/format.php b/question/format/xml/format.php index 52d91796841..f7ac6b86390 100644 --- a/question/format/xml/format.php +++ b/question/format/xml/format.php @@ -1447,10 +1447,8 @@ class qformat_xml extends qformat_default { $expout .= " " . $answer->correctanswerlength . "\n"; $expout .= " format($answer->feedbackformat)}>\n"; - $files = $fs->get_area_files($contextid, $component, - 'instruction', $question->id); $expout .= $this->writetext($answer->feedback); - $expout .= $this->write_files($answer->feedbackfiles); + $expout .= $this->write_files($this->feedbackfiles[$answer->id]); $expout .= " \n"; $expout .= "\n"; }