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:40:27 +00:00
parent 0af5b190f6
commit ed83409b01
+1 -1
View File
@@ -508,7 +508,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";
}