mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Invisible courses are now properly dimmed
This commit is contained in:
parent
5b8540e0d5
commit
d1d74247e4
1 changed files with 1 additions and 0 deletions
|
@ -954,6 +954,7 @@ function print_courses_sideblock($category=0, $width="100%") {
|
|||
if (isset($USER->id) and !isadmin()) { // Just print My Courses
|
||||
if ($courses = get_my_courses($USER->id)) {
|
||||
foreach ($courses as $course) {
|
||||
$linkcss = $course->visible ? "" : " class=\"dimmed\" ";
|
||||
$moddata[]="<a $linkcss title=\"$course->shortname\" ".
|
||||
"href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname</a>";
|
||||
$modicon[]=$icon;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue