From: thepurpleblob Date: Tue, 15 Jan 2008 14:52:49 +0000 (+0000) Subject: MDL-12016: X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=86b685208de8cf2dc6f970e0c55201a334afcc3b;p=moodle.git MDL-12016: Read xml structure correctly to get category path. Merged from STABLE_19 --- 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; }