From de78568276128aa5ba5b1e1175bce28085127f99 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 8 Oct 2004 13:34:48 +0000 Subject: [PATCH] Changes for XHTML compatibility --- course/lib.php | 8 +++++--- mod/assignment/lib.php | 2 +- mod/forum/lib.php | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/course/lib.php b/course/lib.php index 4ae1afa47a..1620064667 100644 --- a/course/lib.php +++ b/course/lib.php @@ -581,12 +581,14 @@ function print_recent_activity($course) { } } - echo '
'; + echo '
'; echo get_string("activitysince", "", userdate($timestart)); + echo '
'; + echo '
'; + echo ''; // Firstly, have there been any new enrolments? diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php index fab85914a0..f7011a525e 100644 --- a/mod/assignment/lib.php +++ b/mod/assignment/lib.php @@ -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('&', '&', $log->url); } } diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 0fc568a274..ccc504e941 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -721,7 +721,7 @@ function forum_print_recent_activity($course, $isteacher, $timestart) { $date = userdate($post->modified, $strftimerecent); $fullname = fullname($post, $isteacher); echo "

$date - $fullname
"; - echo "\"wwwroot/mod/forum/$log->url\">"; + echo "\"wwwroot/mod/forum/".str_replace('&', '&', $log->url)."\">"; $post->subject = break_up_long_words($post->subject); if (!empty($CFG->filterall)) { $post->subject = filter_text("$post->subject", $course->id); -- 2.39.5