From 776dc2709fe358f768dcd4ea7ff33683bcf80a07 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 9 Dec 2002 07:52:47 +0000 Subject: [PATCH] Allow print_all_courses to have width --- course/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = "

wwwroot/course/\">".get_string("fulllistofcourses")."..."; - print_side_block(get_string("courses"), "", $moddata, $modicon, $fulllist); + print_side_block(get_string("courses"), "", $moddata, $modicon, $fulllist, $width); } else { foreach ($courses as $course) { -- 2.39.5