From: stronk7 Date: Thu, 24 Apr 2003 18:28:30 +0000 (+0000) Subject: Changed to show the hidden surveys dimmed (bug #364) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c37053ea2f6ee885b1d917caf853dd84a6a6a941;p=moodle.git Changed to show the hidden surveys dimmed (bug #364) --- diff --git a/mod/survey/index.php b/mod/survey/index.php index 12bcfc56ce..237c85afdd 100644 --- a/mod/survey/index.php +++ b/mod/survey/index.php @@ -54,13 +54,19 @@ } else { $section = ""; } + //Calculate the href + if (!$survey->visible) { + //Show dimmed if the mod is hidden + $tt_href = "coursemodule\">$survey->name"; + } else { + //Show normal if the mod is visible + $tt_href = "coursemodule\">$survey->name"; + } + if ($course->format == "weeks" or $course->format == "topics") { - $table->data[] = array ($section, - "coursemodule\">$survey->name", - "coursemodule\">$ss"); + $table->data[] = array ($section, $tt_href, "coursemodule\">$ss"); } else { - $table->data[] = array ("coursemodule\">$survey->name", - "coursemodule\">$ss"); + $table->data[] = array ($tt_href, "coursemodule\">$ss"); } }