]> git.mjollnir.org Git - moodle.git/commitdiff
Hidden courses are displayed hidden
authormoodler <moodler>
Thu, 21 Aug 2003 17:30:39 +0000 (17:30 +0000)
committermoodler <moodler>
Thu, 21 Aug 2003 17:30:39 +0000 (17:30 +0000)
course/lib.php

index 0a75604e5c1513f6e8990d83c4073455d09886c0..c7e6f5b6d2b85d39998a9cec10c209622bebbb60 100644 (file)
@@ -1059,11 +1059,13 @@ function print_course($course, $width="100%") {
 
     print_simple_box_start("center", "$width");
 
+    $linkcss = $course->visible ? "" : " class=\"dimmed\" ";
+
     echo "<table width=\"100%\">";
     echo "<tr valign=top>";
     echo "<td valign=top width=50%>";
     echo "<p><font size=3><b><a title=\"".get_string("entercourse")."\" 
-              href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname</a></b></font></p>";
+              $linkcss href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname</a></b></font></p>";
     if ($teachers = get_course_teachers($course->id)) {
         echo "<p><font size=\"1\">\n";
         foreach ($teachers as $teacher) {