Changes for XHTML compatibility

This commit is contained in:
moodler
2004-10-08 13:34:48 +00:00
parent 5526e0fa64
commit de78568276
3 changed files with 7 additions and 5 deletions
+5 -3
View File
@@ -581,12 +581,14 @@ function print_recent_activity($course) {
}
}
echo '<center><font size="1">';
echo '<div class="activitydate">';
echo get_string("activitysince", "", userdate($timestart));
echo '</div>';
echo '<div class="activityhead">';
echo '<p><a href="'.$CFG->wwwroot.'/course/recent.php?id='.$course->id.'">'.get_string('recentactivityreport').'</a></p>';
echo '<a href="'.$CFG->wwwroot.'/course/recent.php?id='.$course->id.'">'.get_string('recentactivityreport').'</a>';
echo '</font></center>';
echo '</div>';
// Firstly, have there been any new enrolments?
+1 -1
View File
@@ -305,7 +305,7 @@ function assignment_print_recent_activity($course, $isteacher, $timestart) {
if ($modvisible) {
$assignments[$log->info] = assignment_log_info($log);
$assignments[$log->info]->time = $log->time;
$assignments[$log->info]->url = $log->url;
$assignments[$log->info]->url = str_replace('&', '&amp;', $log->url);
}
}
+1 -1
View File
@@ -721,7 +721,7 @@ function forum_print_recent_activity($course, $isteacher, $timestart) {
$date = userdate($post->modified, $strftimerecent);
$fullname = fullname($post, $isteacher);
echo "<p $teacheronly><font size=\"1\">$date - $fullname<br />";
echo "\"<a href=\"$CFG->wwwroot/mod/forum/$log->url\">";
echo "\"<a href=\"$CFG->wwwroot/mod/forum/".str_replace('&', '&amp;', $log->url)."\">";
$post->subject = break_up_long_words($post->subject);
if (!empty($CFG->filterall)) {
$post->subject = filter_text("<nolink>$post->subject</nolink>", $course->id);