Permalink
Browse files

mod/hotpot MDL-22726 fix importing of intructions from a Hot Potatoes…

… quiz file into the Moodle question bank
  • Loading branch information...
1 parent df77129 commit d666c843b1d09ac7f4d7ddd85ce15f160e18bc7b @gbateson gbateson committed Jun 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/format/hotpot/format.php
@@ -520,7 +520,7 @@ function hotpot_get_title(&$xml, $x, $flag=false) {
return $this->hotpot_prepare_str($title);
}
function hotpot_get_instructions(&$xml) {
- $text = $xml->xml_value('hotpot-config-file,instructions');
+ $text = $xml->xml_value('hotpot-config-file,'.$xml->quiztype.',instructions');
if (empty($text)) {
$text = "Hot Potatoes $xml->quiztype";
}

0 comments on commit d666c84

Please sign in to comment.