From: thepurpleblob Date: Tue, 9 Oct 2007 10:16:01 +0000 (+0000) Subject: MDL-11425: X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6f8481ec0a64d546907805a631d98ddac1a5055e;p=moodle.git MDL-11425: Process the text properly for the category path. Merged from STABLE_18. --- diff --git a/question/format/xml/format.php b/question/format/xml/format.php index dfd2506f57..61cf68c5cc 100755 --- a/question/format/xml/format.php +++ b/question/format/xml/format.php @@ -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 .= " \n"; $expout .= " \n"; - $expout .= " $question->category\n"; + $expout .= " $categorypath\n"; $expout .= " \n"; $expout .= " \n"; return $expout;