From 10c9f012b561beda45f3f5ab50cf03c6d23b3398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Sat, 11 Nov 2023 14:29:29 +0100 Subject: [PATCH] Show the same message as the others quiz reports. --- report.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report.php b/report.php index 9dd1ec4..8c642cc 100644 --- a/report.php +++ b/report.php @@ -125,7 +125,7 @@ public function display($quiz, $cm, $course) { // What sort of page to display? if (!$hasquestions) { - echo $OUTPUT->notification(get_string('noattemptstoshow', 'quiz')); + echo $OUTPUT->notification(get_string('nothingfound', 'quiz_grading')); } else { $this->display_archive(); } @@ -139,7 +139,7 @@ protected function display_archive() { global $OUTPUT; $studentattempts = $this->quizreportgetstudentandattempts($this->quizobj); if (count($studentattempts) === 0) { - echo $OUTPUT->notification(get_string('noattemptstoshow', 'quiz')); + echo $OUTPUT->notification(get_string('nothingfound', 'quiz_grading')); } foreach ($studentattempts as $studentattempt) { echo $this->quiz_report_get_student_attempt($studentattempt['attemptid'], $studentattempt['userid']);