From: stronk7 Date: Thu, 24 Apr 2003 16:38:49 +0000 (+0000) Subject: Changed to show the hidden assignments dimmed (bug #364) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dd8d521d91b1f73bcb897cb9f41fd942f1f7188e;p=moodle.git Changed to show the hidden assignments dimmed (bug #364) --- diff --git a/mod/assignment/index.php b/mod/assignment/index.php index 167082dae4..94b8e98681 100644 --- a/mod/assignment/index.php +++ b/mod/assignment/index.php @@ -56,7 +56,13 @@ $submitted = get_string("no"); } $due = userdate($assignment->timedue); - $link = "coursemodule\">$assignment->name"; + if (!$assignment->visible) { + //Show dimmed if the mod is hidden + $link = "coursemodule\">$assignment->name"; + } else { + //Show normal if the mod is visible + $link = "coursemodule\">$assignment->name"; + } if ($assignment->section) { $section = "$assignment->section"; } else {