mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-33119 quiz complete report: fix placeholders in attempt string.
This commit is contained in:
parent
4db061680e
commit
9378c99b02
@ -425,7 +425,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->state != quiz_attempt::FINISHED) {
|
||||
echo quiz_attempt_state_name($attempt->state);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user