Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

solving MDL-7496 for calculated merged from head

  • Loading branch information...
commit 439e93b27f8f189032f472dcdd6dc6647e13807c 1 parent 5234b78
authored October 31, 2007
4  question/type/shortanswer/questiontype.php
@@ -354,10 +354,10 @@ function print_question_grading_details(&$question, &$state, $cmoptions, $option
354 354
         maximum grade available and a warning if a penalty was applied for the
355 355
         attempt and displays the overall grade obtained counting all previous
356 356
         responses (and penalties) */
357  
-
  357
+        global $QTYPES ;
358 358
         // MDL-7496 show correct answer after "Incorrect"
359 359
         $correctanswer = '';
360  
-        if ($correctanswers = $this->get_correct_responses($question, $state)) {
  360
+        if ($correctanswers =  $QTYPES[$question->qtype]->get_correct_responses($question, $state)) {
361 361
             if ($options->readonly && $options->correct_responses) {
362 362
                 $delimiter = '';
363 363
                 if ($correctanswers) {

0 notes on commit 439e93b

Please sign in to comment.
Something went wrong with that request. Please try again.