MDL-12016:

Read xml structure correctly to get category path
This commit is contained in:
thepurpleblob
2008-01-15 14:50:24 +00:00
parent be1448f47b
commit 3ed692737c
+1 -1
View File
@@ -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;
}