mod/hotpot MDL-22726 fix importing of intructions from a Hot Potatoes quiz file into the Moodle question bank

This commit is contained in:
Gordon Bateson
2010-06-10 23:37:23 +00:00
parent df77129ed9
commit d666c843b1
+1 -1
View File
@@ -520,7 +520,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";
}