From 86b685208de8cf2dc6f970e0c55201a334afcc3b Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Tue, 15 Jan 2008 14:52:49 +0000 Subject: [PATCH] MDL-12016: Read xml structure correctly to get category path. Merged from STABLE_19 --- question/format/xml/format.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/format/xml/format.php b/question/format/xml/format.php index 61cf68c5cc..e8e4edbe8c 100755 --- a/question/format/xml/format.php +++ b/question/format/xml/format.php @@ -498,7 +498,7 @@ class qformat_xml extends qformat_default { function import_category( $question ) { $qo = new stdClass; $qo->qtype = 'category'; - $qo->category = $question['#']['category'][0]['#']; + $qo->category = $this->import_text($question['#']['category'][0]['#']['text']); return $qo; } -- 2.39.5