WHen showing just course categories, then the title of the section

is now "Course categories" rather than "Available courses"
This commit is contained in:
moodler 2004-03-13 00:53:17 +00:00
parent 95c1bce09e
commit ba2cde498d

View File

@ -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%");
}
}