Permalink
Browse files

Changes to calls to get_courses to not get all fields

  • Loading branch information...
1 parent f873133 commit fdbadd57ebb0597cd89aab26bee820294d341a29 mjollnir_ committed Nov 22, 2004
Showing with 5 additions and 5 deletions.
  1. +1 −1 admin/uploaduser.php
  2. +2 −2 backup/backup.php
  3. +1 −1 backup/restore_check.html
  4. +1 −1 calendar/view.php
View
@@ -170,7 +170,7 @@
$addgroup[2] = $user->group3;
$addgroup[3] = $user->group4;
$addgroup[4] = $user->group5;
- $courses = get_courses("all");
+ $courses = get_courses("all",'c.sortorder','c.id,c.shortname,c.fullname,c.sortorder');
for ($i=0; $i<5; $i++) {
$courseid[$i]=0;
}
View
@@ -49,11 +49,11 @@
print_header("$site->shortname: $strcoursebackup", $site->fullname,
"<A HREF=\"$CFG->wwwroot/$CFG->admin/index.php\">$stradministration</A> -> $strcoursebackup");
- if ($courses = get_courses()) {
+ if ($courses = get_courses('all','c.shortname','c.id,c.shortname,c.fullname')) {
print_heading(get_string("choosecourse"));
print_simple_box_start("CENTER");
foreach ($courses as $course) {
- echo "<A HREF=\"backup.php?id=$course->id\">$course->fullname ($course->shortname)</A><BR>";
+ echo "<A HREF=\"backup.php?id=$course->id\">$course->fullname ($course->shortname)</A><BR>";
}
print_simple_box_end();
} else {
@@ -148,7 +148,7 @@
//Now, select the course if needed
if (($restore->restoreto == 0 or $restore->restoreto == 1) and ($restore->course_id == 0) and (iscreator())) {
- if ($courses = get_courses("all","c.fullname")) {
+ if ($courses = get_courses("all","c.fullname","c.id,c.fullname,c.shortname")) {
print_heading(get_string("choosecourse"));
print_simple_box_start("CENTER");
foreach ($courses as $course) {
View
@@ -606,7 +606,7 @@ function calendar_course_filter_selector($getvars = '') {
}
if (isadmin()) {
- $courses = get_courses('all', 'c.shortname');
+ $courses = get_courses('all', 'c.shortname','c.id,c.shortname');
} else {
$courses = get_my_courses($USER->id, 'shortname');
}

0 comments on commit fdbadd5

Please sign in to comment.