From ba2cde498d0eb0bc95d73a100cb86a92a8fe405c Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 13 Mar 2004 00:53:17 +0000 Subject: [PATCH] WHen showing just course categories, then the title of the section is now "Course categories" rather than "Available courses" --- index.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 542789d683a..d8ee0339058 100644 --- a/index.php +++ b/index.php @@ -147,14 +147,20 @@ print_spacer(8,1); print_my_moodle(); } else { - print_heading_block(get_string("availablecourses")); - print_spacer(8,1); if (count_records("course_categories") > 1) { + if ($CFG->frontpage == FRONTPAGECOURSELIST) { + print_heading_block(get_string("availablecourses")); + } else { + print_heading_block(get_string("categories")); + } + print_spacer(8,1); print_simple_box_start("center", "100%"); print_whole_category_list(); print_simple_box_end(); print_course_search("", false, "short"); } else { + print_heading_block(get_string("availablecourses")); + print_spacer(8,1); print_courses(0, "100%"); } }