]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12016:
authorthepurpleblob <thepurpleblob>
Tue, 15 Jan 2008 14:52:49 +0000 (14:52 +0000)
committerthepurpleblob <thepurpleblob>
Tue, 15 Jan 2008 14:52:49 +0000 (14:52 +0000)
Read xml structure correctly to get category path.

Merged from STABLE_19

question/format/xml/format.php

index 61cf68c5ccd1eb0f7c394932fb3c3013bac2763a..e8e4edbe8cf825f39a978cdc99f7130e32d9134c 100755 (executable)
@@ -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;
     }