]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-13112 - order my courses block alphabetically when only displaying a users
authorpoltawski <poltawski>
Wed, 23 Jan 2008 15:40:56 +0000 (15:40 +0000)
committerpoltawski <poltawski>
Wed, 23 Jan 2008 15:40:56 +0000 (15:40 +0000)
individual courses.
merged from MOODLE_19_STABLE

blocks/course_list/block_course_list.php

index ec20063cb0a33003fdbfb5346136fbf0d3a9ab27..34fed959798225bf4001222d5655a3a0b936fb7e 100644 (file)
@@ -38,7 +38,7 @@ class block_course_list extends block_list {
             !empty($USER->id) and 
             !(has_capability('moodle/course:update', get_context_instance(CONTEXT_SYSTEM)) and $adminseesall) and
             !isguest()) {    // Just print My Courses
-            if ($courses = get_my_courses($USER->id)) {
+            if ($courses = get_my_courses($USER->id, 'visible DESC, fullname ASC')) {
                 foreach ($courses as $course) {
                     if ($course->id == SITEID) {
                         continue;