qformat xml MDL-22743 questiontextformat not imported correctly since the fix for MDL-9700 went in.

This commit is contained in:
Tim Hunt
2010-08-05 13:11:28 +00:00
parent 348aae8680
commit d35f34c282
+2 -3
View File
@@ -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;
}
}
?>