Skip to content

Commit

Permalink
Merged from STABLE.
Browse files Browse the repository at this point in the history
  • Loading branch information
nfreear committed May 16, 2006
1 parent 42c4e61 commit 5fc835a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions course/lib.php
Expand Up @@ -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 '<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? // Firstly, have there been any new enrolments?
Expand All @@ -794,18 +794,21 @@ function print_recent_activity($course) {


$users = get_recent_enrolments($course->id, $timestart); $users = get_recent_enrolments($course->id, $timestart);


//Accessibility: new users now appear in an <OL> list.
if ($users) { if ($users) {
echo '<div class="newusers">'; 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) { foreach ($users as $user) {
if (! $heading) {
print_headline(get_string("newusers").':', 3);
$heading = true;
$content = true;
}
$fullname = fullname($user, $isteacher); $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? // Next, have there been any modifications to the course structure?
Expand Down

0 comments on commit 5fc835a

Please sign in to comment.