From 6f8481ec0a64d546907805a631d98ddac1a5055e Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Tue, 9 Oct 2007 10:16:01 +0000 Subject: [PATCH] MDL-11425: Process the text properly for the category path. Merged from STABLE_18. --- question/format/xml/format.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5