From d666c843b1d09ac7f4d7ddd85ce15f160e18bc7b Mon Sep 17 00:00:00 2001 From: Gordon Bateson Date: Thu, 10 Jun 2010 23:37:23 +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 69d3d6d251b..e31ec983d0b 100644 --- a/question/format/hotpot/format.php +++ b/question/format/hotpot/format.php @@ -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"; }