mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
taking out deprecated width in print_courses and print_course
This commit is contained in:
parent
c68e578b3a
commit
35d0244a37
@ -249,7 +249,7 @@
|
||||
}
|
||||
|
||||
} 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&perpage=$perpage&");
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -228,7 +228,7 @@
|
||||
} 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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user