]> git.mjollnir.org Git - moodle.git/commitdiff
index.php: drop unused $hidesitecourse parameter when calling print_courses()
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:51:02 +0000 (07:51 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:51:02 +0000 (07:51 +0000)
And this is the only user of print_courses() that mentions it
explicitly. Other callers have been checked and don't need or use the
sitecourse.

index.php

index 2b4f9bce953817897f805067c0d722ac527b749a..a1d9a607ae4dc649437da6c56f43a4df2b758520 100644 (file)
--- a/index.php
+++ b/index.php
                 } else if ((!has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM)) and !isguest()) or (count_records('course') <= FRONTPAGECOURSELIMIT)) {
                     // admin should not see list of courses when there are too many of them
                     print_heading_block(get_string('availablecourses'));
-                    print_courses(0, true);
+                    print_courses(0);
                 }
             break;