Commit a99a407b authored by Gordon Bateson's avatar Gordon Bateson
Browse files

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

mod/hotpot MDL-22726 fix importing of intructions from a Hot Potatoes quiz file into the Moodle question bank
parent fa797f3a
......@@ -505,7 +505,7 @@ class qformat_hotpot extends qformat_default {
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";
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment