Skip to content

Commit

Permalink
Merged from MOODLE_14_STABLE: Changes to calls to get_courses to not …
Browse files Browse the repository at this point in the history
…get all fields
  • Loading branch information
mjollnir_ committed Nov 22, 2004
1 parent ed040b1 commit e6d1d12
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin/uploaduser.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,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;
}
Expand Down
2 changes: 1 addition & 1 deletion backup/backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
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) {
Expand Down
2 changes: 1 addition & 1 deletion backup/restore_check.html
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion calendar/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit e6d1d12

Please sign in to comment.