Skip to content
Browse files

MDL-12016:

Read xml structure correctly to get category path
  • Loading branch information...
1 parent 9deccd7 commit 7356223a7de533d55f769fca26df9e856d172c13 thepurpleblob committed Jan 15, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/format/xml/format.php
View
2 question/format/xml/format.php
@@ -498,7 +498,7 @@ function import_calculated( $question ) {
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;
}

0 comments on commit 7356223

Please sign in to comment.
Something went wrong with that request. Please try again.