]> git.mjollnir.org Git - moodle.git/commitdiff
user/view MDL-18800 Sort courses consistently with everything else
authormoodler <moodler>
Fri, 2 Oct 2009 06:34:12 +0000 (06:34 +0000)
committermoodler <moodler>
Fri, 2 Oct 2009 06:34:12 +0000 (06:34 +0000)
user/view.php

index a841cadc7dd20dad3a9cff152f917f94c9fa2ea8..6f31b2d8ebb0af2eb3a82a557b3fb510a8594d68 100644 (file)
@@ -367,7 +367,7 @@ profile_display_fields($user->id);
 
 
 if (!isset($hiddenfields['mycourses'])) {
-    if ($mycourses = get_my_courses($user->id, null, null, false, 21)) {
+    if ($mycourses = get_my_courses($user->id, 'visible DESC,sortorder ASC', null, false, 21)) {
         $shown=0;
         $courselisting = '';
         foreach ($mycourses as $mycourse) {
@@ -583,4 +583,4 @@ function print_row($left, $right) {
     echo "\n<tr><td class=\"label c0\">$left</td><td class=\"info c1\">$right</td></tr>\n";
 }
 
-?>
\ No newline at end of file
+?>