Skip to content
Snippets Groups Projects
Commit 0a16a9b5 authored by Sivaji Ganesh Jojodae's avatar Sivaji Ganesh Jojodae
Browse files

Issue #477760 ['question_count'] counts directions as well as questions, has been fixed.

parent 90a490f8
No related branches found
No related tags found
No related merge requests found
......@@ -1370,7 +1370,7 @@ function quiz_mail($key, &$message, $params) {
'!date' => date("F j, Y, g:i a"),
'!desc' => $quiz->body,
'!correct' => $score['numeric_score'],
'!total' => $score['question_count'],
'!total' => $score['possible_score'],
'!percentage' => $score['percentage_score'],
'!url' => url('user/quiz/' . $rid . '/userresults'),
);
......@@ -1383,7 +1383,7 @@ function quiz_mail($key, &$message, $params) {
foreach ($substitutions as $key => $value) {
$subject = str_replace($key, $value, $subject);
$body = str_replace($key, $value, $body);
}
}
$message['subject'] = $subject;
$message['body'] = $body;
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment