Permalink
Browse files

MDL-33119 quiz complete report: fix placeholders in attempt string.

  • Loading branch information...
timhunt committed Jun 1, 2012
1 parent fbbb4cc commit 3c967721203261e4fc2875093c5eb3aa0d739e04
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/lib.php
View
@@ -418,7 +418,7 @@ function quiz_user_complete($course, $user, $mod, $quiz) {
if ($attempts = $DB->get_records('quiz_attempts',
array('userid' => $user->id, 'quiz' => $quiz->id), 'attempt')) {
foreach ($attempts as $attempt) {
- echo get_string('attempt', 'quiz').' '.$attempt->attempt.': ';
+ echo get_string('attempt', 'quiz', $attempt->attempt) . ': ';
if ($attempt->timefinish == 0) {
print_string('unfinished');
} else {

0 comments on commit 3c96772

Please sign in to comment.