From d157bd5b28572e58a6434d715102fc87cce8ede6 Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 19 Jul 2006 13:16:57 +0000 Subject: [PATCH] fixed course/index.php category display affected by previous commit - improved category and course list display on front page; merged from MOODLE_16_STABLE --- course/lib.php | 2 +- index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/course/lib.php b/course/lib.php index f4d73b5991..cba819d437 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1316,7 +1316,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 dba5dbe211..1ae7eee397 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; -- 2.39.5