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 0af5b19 commit ed83409b01776a291b6a28016d7266e760fb0f8a @gbateson gbateson committed Jun 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/format/hotpot/format.php
@@ -508,7 +508,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 ed83409

Please sign in to comment.