From: stronk7 Date: Thu, 24 Apr 2003 15:25:21 +0000 (+0000) Subject: Changed to show the hidden resources dimmed (bug #364) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=81cdaada93d733aa27cc7ac7d08e20d8e8bc8673;p=moodle.git Changed to show the hidden resources dimmed (bug #364) --- diff --git a/mod/resource/index.php b/mod/resource/index.php index 1fc59cc6a5..f235040fd6 100644 --- a/mod/resource/index.php +++ b/mod/resource/index.php @@ -58,8 +58,15 @@ } else { $tt = "".userdate($resource->timemodified); } - $table->data[] = array ($tt, "coursemodule\">$resource->name", - text_to_html($resource->summary) ); + if (!$resource->visible) { + //Show dimmed if the mod is hidden + $table->data[] = array ($tt, "coursemodule\">$resource->name", + text_to_html($resource->summary) ); + } else { + //Show normal if the mod is visible + $table->data[] = array ($tt, "coursemodule\">$resource->name", + text_to_html($resource->summary) ); + } } echo "
";