]> git.mjollnir.org Git - moodle.git/commitdiff
Merged from STABLE.
authornfreear <nfreear>
Tue, 16 May 2006 10:59:27 +0000 (10:59 +0000)
committernfreear <nfreear>
Tue, 16 May 2006 10:59:27 +0000 (10:59 +0000)
course/lib.php

index 6f6a2e05fd26f0d28df457a50efabc72c14d5eb2..1b6e80aea3fc8e081aed3dba5cae8b102d586528 100644 (file)
@@ -784,7 +784,7 @@ function print_recent_activity($course) {
 
     echo '<a href="'.$CFG->wwwroot.'/course/recent.php?id='.$course->id.'">'.get_string('recentactivityreport').'</a>';
 
-    echo '</div>';
+    echo "</div>\n";
 
 
     // Firstly, have there been any new enrolments?
@@ -794,18 +794,21 @@ function print_recent_activity($course) {
 
     $users = get_recent_enrolments($course->id, $timestart);
 
+    //Accessibility: new users now appear in an <OL> list.
     if ($users) {
         echo '<div class="newusers">';
+        if (! $heading) {
+            print_headline(get_string("newusers").':', 3);      
+            $heading = true;
+            $content = true;
+        }
+        echo "<ol class=\"list\">\n";
         foreach ($users as $user) {
-            if (! $heading) {
-                print_headline(get_string("newusers").':', 3);
-                $heading = true;
-                $content = true;
-            }
+            
             $fullname = fullname($user, $isteacher);
-            echo '<span class="name"><a href="'.$CFG->wwwroot."/user/view.php?id=$user->id&amp;course=$course->id\">$fullname</a></span><br />";
+            echo '<li class="name"><a href="'.$CFG->wwwroot."/user/view.php?id=$user->id&amp;course=$course->id\">$fullname</a></li>\n";
         }
-        echo '</div>';
+        echo "</ol>\n</div>\n";
     }
 
     // Next, have there been any modifications to the course structure?