Skip to content

Commit

Permalink
solving MDL-7496 for calculated merged from head
Browse files Browse the repository at this point in the history
  • Loading branch information
pichetp committed Oct 31, 2007
1 parent 5234b78 commit 439e93b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions question/type/shortanswer/questiontype.php
Expand Up @@ -354,10 +354,10 @@ function print_question_grading_details(&$question, &$state, $cmoptions, $option
maximum grade available and a warning if a penalty was applied for the maximum grade available and a warning if a penalty was applied for the
attempt and displays the overall grade obtained counting all previous attempt and displays the overall grade obtained counting all previous
responses (and penalties) */ responses (and penalties) */

global $QTYPES ;
// MDL-7496 show correct answer after "Incorrect" // MDL-7496 show correct answer after "Incorrect"
$correctanswer = ''; $correctanswer = '';
if ($correctanswers = $this->get_correct_responses($question, $state)) { if ($correctanswers = $QTYPES[$question->qtype]->get_correct_responses($question, $state)) {
if ($options->readonly && $options->correct_responses) { if ($options->readonly && $options->correct_responses) {
$delimiter = ''; $delimiter = '';
if ($correctanswers) { if ($correctanswers) {
Expand Down

0 comments on commit 439e93b

Please sign in to comment.