From 6686945ee347c48d6cea6af4168948e156e77c3a Mon Sep 17 00:00:00 2001 From: Gordon Bateson Date: Thu, 10 Jun 2010 23:39:51 +0000 Subject: [PATCH] mod/hotpot MDL-22726 fix importing of intructions from a Hot Potatoes quiz file into the Moodle question bank --- question/format/hotpot/format.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/format/hotpot/format.php b/question/format/hotpot/format.php index 20a57e03b7d..1cc25fe1bb9 100644 --- a/question/format/hotpot/format.php +++ b/question/format/hotpot/format.php @@ -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"; }