mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
WHen showing just course categories, then the title of the section
is now "Course categories" rather than "Available courses"
This commit is contained in:
parent
95c1bce09e
commit
ba2cde498d
10
index.php
10
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%");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user