Permalink
Browse files

qformat xml MDL-22743 questiontextformat not imported correctly since…

… the fix for MDL-9700 went in.
  • Loading branch information...
timhunt committed Aug 5, 2010
1 parent 348aae8 commit d35f34c2827dfbc0cfdafeada96ab9b84104af4e
Showing with 2 additions and 3 deletions.
  1. +2 −3 question/format/xml/format.php
@@ -131,7 +131,8 @@ function import_headers( $question ) {
// 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 @@ function writequestion( $question ) {
return $expout;
}
}
-
-?>

0 comments on commit d35f34c

Please sign in to comment.