]> git.mjollnir.org Git - moodle.git/commitdiff
taking out deprecated width in print_courses and print_course
authortoyomoyo <toyomoyo>
Wed, 14 Feb 2007 04:56:26 +0000 (04:56 +0000)
committertoyomoyo <toyomoyo>
Wed, 14 Feb 2007 04:56:26 +0000 (04:56 +0000)
course/category.php
course/index.php
course/lib.php
index.php

index 84cdd09634dff41550126e8200349daff23882b3..12df10b3140fbf8bef6049dd49ec45196d60dd6f 100644 (file)
         }
 
     } else if ($numcourses <= COURSE_MAX_SUMMARIES_PER_PAGE and !$page and !$creatorediting) {
-        print_courses($category, "80%");
+        print_courses($category);
 
     } else {
         print_paging_bar($totalcount, $page, $perpage, "category.php?id=$category->id&amp;perpage=$perpage&");
index 6e5de0a96a37bf375df6c93c032d1bb402f262a4..8e63f08ef167a8e40aabdcf1bdbeaa693bc3e05a 100644 (file)
@@ -55,7 +55,7 @@
             print_header("$site->shortname: $strfulllistofcourses", $strfulllistofcourses, $strfulllistofcourses,
                          '', '', true, update_categories_button());
             print_box_start('courseboxes');
-            print_courses(0, '80%');
+            print_courses(0);
             print_box_end();
         }
 
index 9c3ad3275d66d37eae3b20dac09b606aad294080..d4144d76ddeb460498fee4ebd5be04f1b1b5dec9 100644 (file)
@@ -1731,7 +1731,7 @@ function print_category_info($category, $depth, $files = false) {
 }
 
 
-function print_courses($category, $width="100%", $hidesitecourse = false) {
+function print_courses($category, $hidesitecourse = false) {
 /// Category is 0 (for all courses) or an object
 
     global $CFG;
@@ -1755,7 +1755,7 @@ function print_courses($category, $width="100%", $hidesitecourse = false) {
             if ($hidesitecourse and ($course->id == SITEID)) {
                 continue;
             }
-            print_course($course, $width);
+            print_course($course);
         }
     } else {
         print_heading(get_string("nocoursesyet"));
@@ -1774,7 +1774,7 @@ function print_courses($category, $width="100%", $hidesitecourse = false) {
 }
 
 
-function print_course($course, $width="100%") {
+function print_course($course) {
 
     global $CFG, $USER;
 
@@ -1882,7 +1882,7 @@ function print_my_moodle() {
             print_whole_category_list();
             print_simple_box_end();
         } else {
-            print_courses(0, "100%");
+            print_courses(0);
         }
     }
 }
index 6fd71a7feda447e896ca53e019038c1f8cb22747..a3a3607b98a362ceeec39193cc12f96ed358fd75 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, '100%', true);
+                    print_courses(0, true);
                 }
             break;