]> git.mjollnir.org Git - moodle.git/commitdiff
Allow print_all_courses to have width
authormoodler <moodler>
Mon, 9 Dec 2002 07:52:47 +0000 (07:52 +0000)
committermoodler <moodler>
Mon, 9 Dec 2002 07:52:47 +0000 (07:52 +0000)
course/lib.php

index 7ddcda23fe540cc34f879d7a1f886cf62c345b97..c3486e0d0e966f10fa2bd7632db16d46d68822a7 100644 (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) {