]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11425:
authorthepurpleblob <thepurpleblob>
Tue, 9 Oct 2007 10:16:01 +0000 (10:16 +0000)
committerthepurpleblob <thepurpleblob>
Tue, 9 Oct 2007 10:16:01 +0000 (10:16 +0000)
Process the text properly for the category path.

Merged from STABLE_18.

question/format/xml/format.php

index dfd2506f57f07e68f47fd1afebcf32b3c0fd729e..61cf68c5ccd1eb0f7c394932fb3c3013bac2763a 100755 (executable)
@@ -772,9 +772,10 @@ class qformat_xml extends qformat_default {
         // add opening tag
         // generates specific header for Cloze and category type question
         if ($question->qtype == 'category') {
+            $categorypath = $this->writetext( $question->category );
             $expout .= "  <question type=\"category\">\n";
             $expout .= "    <category>\n";
-            $expout .= "        $question->category\n";
+            $expout .= "        $categorypath\n";
             $expout .= "    </category>\n";
             $expout .= "  </question>\n";
             return $expout;