From 134f2cc05a7f9b6c3e1fea0088eee1d0c2977c79 Mon Sep 17 00:00:00 2001 From: vyshane Date: Mon, 18 Dec 2006 01:18:18 +0000 Subject: [PATCH] Removed tabs from source. --- question/type/shortanswer/questiontype.php | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/question/type/shortanswer/questiontype.php b/question/type/shortanswer/questiontype.php index 114f5ab5d7..f72398e3ec 100644 --- a/question/type/shortanswer/questiontype.php +++ b/question/type/shortanswer/questiontype.php @@ -146,28 +146,28 @@ class question_shortanswer_qtype extends default_questiontype { $inputname = ' name="'.$nameprefix.'" '; $feedback = ''; - $class = ''; - $feedbackimg = ''; + $class = ''; + $feedbackimg = ''; if ($options->feedback) { foreach($question->options->answers as $answer) { - if ($this->test_response($question, $state, $answer)) { - // Answer was correct or partially correct. - if ($answer->fraction == 1) { - $class = 'correct'; - $feedbackimg = ''.get_string('correct', 'quiz').''; - } else { - $class = 'partiallycorrect'; - $feedbackimg = ''.get_string('partiallycorrect', 'quiz').''; - } - if ($answer->feedback) { + if ($this->test_response($question, $state, $answer)) { + // Answer was correct or partially correct. + if ($answer->fraction == 1) { + $class = 'correct'; + $feedbackimg = ''.get_string('correct', 'quiz').''; + } else { + $class = 'partiallycorrect'; + $feedbackimg = ''.get_string('partiallycorrect', 'quiz').''; + } + if ($answer->feedback) { $feedback = format_text($answer->feedback, true, $formatoptions, $cmoptions->course); } break; - } else { - $class = 'incorrect'; - $feedbackimg = ''.get_string('incorrect', 'quiz').''; - } + } else { + $class = 'incorrect'; + $feedbackimg = ''.get_string('incorrect', 'quiz').''; + } } } -- 2.39.5