From d35f34c2827dfbc0cfdafeada96ab9b84104af4e Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Thu, 5 Aug 2010 13:11:28 +0000 Subject: [PATCH] qformat xml MDL-22743 questiontextformat not imported correctly since the fix for MDL-9700 went in. --- question/format/xml/format.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } } - -?>