]> git.mjollnir.org Git - moodle.git/commitdiff
When restoring to existing course, the list of
authorstronk7 <stronk7>
Tue, 9 Mar 2004 11:35:14 +0000 (11:35 +0000)
committerstronk7 <stronk7>
Tue, 9 Mar 2004 11:35:14 +0000 (11:35 +0000)
available courses was previously ordered by sortorder.
Now it's ordered by fullname. See bug 1108.
(http://moodle.org/bugs/bug.php?op=show&bugid=1108)

backup/restore_check.html

index 48c9c5c605fd2cbd3332850ff7af18a89255a767..3606e59a93b28ec37c878d7284ee454cab286c58 100644 (file)
 
     //Now, select the course if needed
     if (($restore->restoreto == 0 or $restore->restoreto == 1) and ($restore->course_id == 0) and (isadmin())) {
-        if ($courses = get_courses()) {
+        if ($courses = get_courses("all","c.fullname")) {
             print_heading(get_string("choosecourse"));
             print_simple_box_start("CENTER");
             foreach ($courses as $course) {