diff --git a/question/format/xml/format.php b/question/format/xml/format.php index b6f4b79c519..bcbfde8a26e 100755 --- a/question/format/xml/format.php +++ b/question/format/xml/format.php @@ -131,7 +131,8 @@ class qformat_xml extends qformat_default { // question name $qo->name = $this->getpath( $question, array('#','name',0,'#','text',0,'#'), '', true, $error_noname ); $qo->questiontext = $this->getpath( $question, array('#','questiontext',0,'#','text',0,'#'), '', true ); - $qo->questiontextformat = $this->getpath( $question, array('#','questiontext',0,'@','format'), '' ); + $qo->questiontextformat = $this->trans_format($this->getpath( + $question, array('#','questiontext',0,'@','format'), '')); $qo->image = $this->getpath( $question, array('#','image',0,'#'), $qo->image ); $image_base64 = $this->getpath( $question, array('#','image_base64','0','#'),'' ); if (!empty($image_base64)) { @@ -1014,5 +1015,3 @@ class qformat_xml extends qformat_default { return $expout; } } - -?>