From ae2c091f0941944710ee59ee37339b1c53069b3c Mon Sep 17 00:00:00 2001 From: Pierre Pichet Date: Mon, 8 Nov 2010 20:58:32 +0000 Subject: [PATCH] MDL-25104 Fixing some litle errors about $instructions param of numerical --- question/format/xml/format.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/question/format/xml/format.php b/question/format/xml/format.php index 6ce5c1bd782..82dbd5d8f27 100755 --- a/question/format/xml/format.php +++ b/question/format/xml/format.php @@ -508,9 +508,8 @@ class qformat_xml extends qformat_default { $qo->instructions = array(); $qo->instructions['text'] = $this->getpath($instructions, array('0', '#', 'text', '0', '#'), '', true); - $qo->instructions['format'] = $this->trans_format($this->getpath( + $qo->instructions['format'] = $this->trans_format($this->getpath($instructions, array('0', '@', 'format'), 'moodle_auto_format')); - $files = $this->getpath($question, array('#', 'questiontext', 0, '#','file'), array(), false); $files = $this->getpath($instructions, array('0', '#', 'file'), array()); $qo->instructionsfiles = array(); foreach ($files as $file) { -- 2.36.1