From ed83409b01776a291b6a28016d7266e760fb0f8a Mon Sep 17 00:00:00 2001 From: Gordon Bateson Date: Thu, 10 Jun 2010 23:40:27 +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 92e1641db1f..af1326aebfc 100644 --- a/question/format/hotpot/format.php +++ b/question/format/hotpot/format.php @@ -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"; }