Skip to content

Commit

Permalink
mod/hotpot MDL-22726 fix importing of intructions from a Hot Potatoes…
Browse files Browse the repository at this point in the history
… quiz file into the Moodle question bank
Gordon Bateson committed Jun 10, 2010
1 parent 09eb215 commit 8785967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question/format/hotpot/format.php
Original file line number Diff line number Diff line change
@@ -482,7 +482,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 8785967

Please sign in to comment.