From: moodler <moodler> Date: Mon, 9 Dec 2002 07:52:47 +0000 (+0000) Subject: Allow print_all_courses to have width X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=776dc2709fe358f768dcd4ea7ff33683bcf80a07;p=moodle.git Allow print_all_courses to have width --- diff --git a/course/lib.php b/course/lib.php index 7ddcda23fe..c3486e0d0e 100644 --- a/course/lib.php +++ b/course/lib.php @@ -175,7 +175,7 @@ function print_log($course, $user=0, $date=0, $order="ORDER BY l.time ASC") { } -function print_all_courses($category="all", $style="full", $maxcount=999) { +function print_all_courses($category="all", $style="full", $maxcount=999, $width=180) { global $CFG, $USER; if ($category == "all") { @@ -208,7 +208,7 @@ function print_all_courses($category="all", $style="full", $maxcount=999) { } } $fulllist = "<P><A HREF=\"$CFG->wwwroot/course/\">".get_string("fulllistofcourses")."</A>..."; - print_side_block(get_string("courses"), "", $moddata, $modicon, $fulllist); + print_side_block(get_string("courses"), "", $moddata, $modicon, $fulllist, $width); } else { foreach ($courses as $course) {