diff --git a/course/lib.php b/course/lib.php index 2856eb6e7f3..68b28fd7011 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1037,7 +1037,7 @@ function make_categories_list(&$list, &$parents, $category=NULL, $path="") { } -function print_whole_category_list($category=NULL, $displaylist=NULL, $parentslist=NULL, $depth=-1, $files = false) { +function print_whole_category_list($category=NULL, $displaylist=NULL, $parentslist=NULL, $depth=-1, $files = true) { /// Recursive function to print out all the categories in a nice format /// with or without courses included global $CFG; diff --git a/index.php b/index.php index dba5dbe2110..1ae7eee3977 100644 --- a/index.php +++ b/index.php @@ -170,7 +170,7 @@ print_heading_block(get_string('categories')); print_simple_box_start('center', '100%', '', 5, 'categorybox'); - print_whole_category_list(); + print_whole_category_list(NULL, NULL, NULL, -1, false); print_simple_box_end(); print_course_search('', false, 'short'); break;