Allow print_all_courses to have width

This commit is contained in:
moodler
2002-12-09 07:52:47 +00:00
parent d9fd5e8b86
commit 776dc2709f
+2 -2
View File
@@ -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) {