From e6c136e1bf67ff85a9404b5322c063a0376473b0 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 24 Apr 2003 18:19:23 +0000 Subject: [PATCH] Changed to show the hidden quizzes dimmed (bug #364) --- mod/quiz/index.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mod/quiz/index.php b/mod/quiz/index.php index 3cd4020231..6d691cfb4e 100644 --- a/mod/quiz/index.php +++ b/mod/quiz/index.php @@ -58,7 +58,13 @@ } foreach ($quizzes as $quiz) { - $link = "coursemodule\">$quiz->name"; + if (!$quiz->visible) { + //Show dimmed if the mod is hidden + $link = "coursemodule\">$quiz->name"; + } else { + //Show normal if the mod is visible + $link = "coursemodule\">$quiz->name"; + } $bestgrade = quiz_get_best_grade($quiz->id, $USER->id); -- 2.39.5