From 5db72c050f3c37f8ba8a697771ceff04eb2682c8 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 6 Oct 2005 17:22:52 +0000 Subject: [PATCH] Now hidden courses are showed dimmed in the restore process. Bug 4152. (http://moodle.org/bugs/bug.php?op=show&bugid=4152) Merged from MOODLE_15_STABLE --- backup/restore_check.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/backup/restore_check.html b/backup/restore_check.html index bfbca4e334f..3069feb2aa1 100644 --- a/backup/restore_check.html +++ b/backup/restore_check.html @@ -149,11 +149,16 @@ //Now, select the course if needed if (($restore->restoreto == 0 or $restore->restoreto == 1) and ($restore->course_id == 0) and (iscreator())) { - if ($courses = get_courses("all","c.fullname","c.id,c.fullname,c.shortname")) { + if ($courses = get_courses("all","c.fullname","c.id,c.fullname,c.shortname,c.visible")) { print_heading(get_string("choosecourse")); print_simple_box_start("center"); foreach ($courses as $course) { - echo "id&launch=check&id=$id&file=$file\">$course->fullname ($course->shortname)
"; + if (empty($course->visible)) { + $optdimmed = ' class="dimmed" '; + } else { + $optdimmed = ''; + } + echo "id&launch=check&id=$id&file=$file\">$course->fullname ($course->shortname)
"; } print_simple_box_end(); } else {