Merge branch 'MDL-33119_22' of git://github.com/timhunt/moodle into MOODLE_22_STABLE

This commit is contained in:
Dan Poltawski
2012-06-06 10:32:07 +08:00
+1 -1
View File
@@ -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 {