From: stronk7 Date: Thu, 24 Apr 2003 18:19:23 +0000 (+0000) Subject: Changed to show the hidden quizzes dimmed (bug #364) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e6c136e1bf67ff85a9404b5322c063a0376473b0;p=moodle.git Changed to show the hidden quizzes dimmed (bug #364) --- 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);