]> git.mjollnir.org Git - moodle.git/commitdiff
Changes for XHTML compatibility
authormoodler <moodler>
Fri, 8 Oct 2004 13:34:48 +0000 (13:34 +0000)
committermoodler <moodler>
Fri, 8 Oct 2004 13:34:48 +0000 (13:34 +0000)
course/lib.php
mod/assignment/lib.php
mod/forum/lib.php

index 4ae1afa47adc7f804b069a1135b6d50ad00f1aeb..1620064667d2cc1d5c0c6799a145ce0db0d58d01 100644 (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?
index fab85914a03419db02dcd8565b4c9cc4070cbad8..f7011a525e1459224e523c4f39c6b05e17046268 100644 (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);
         }
     }
 
index 0fc568a2745f2af184d3a5ad95d8ee2c37b278db..ccc504e94179795a8b169f8617b44130542ef7cc 100644 (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);