]> git.mjollnir.org Git - moodle.git/commitdiff
fixed course/index.php category display affected by previous commit - improved catego...
authorskodak <skodak>
Wed, 19 Jul 2006 13:16:57 +0000 (13:16 +0000)
committerskodak <skodak>
Wed, 19 Jul 2006 13:16:57 +0000 (13:16 +0000)
course/lib.php
index.php

index f4d73b5991d22ef3e590cdebb9e39eff522d4692..cba819d437ee11a371ac94307a7b2a61e248df4f 100644 (file)
@@ -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;
index dba5dbe211042363eb2be7a685a2f3ded14128ef..1ae7eee3977cb85734171d56f312900b7f478fb3 100644 (file)
--- a/index.php
+++ b/index.php
 
                 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;