Permalink
Browse files

Fixed some display of the logs in "recent activity"

  • Loading branch information...
1 parent a4cf828 commit 83b0b7731e051991a34937bef09eb2b6d3e24e8a martin committed Jun 1, 2002
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/lib.php
View
@@ -203,13 +203,13 @@ function print_recent_activity($course) {
$modname = get_field($info[0], "name", "id", $info[1]);
if ($info[0] == "discuss") {
- $info[0] == "discussion"; // nasty hack, really.
+ $info[0] = "discussion"; // nasty hack, really.
}
echo "<LI><FONT SIZE=1>";
switch ($log->action) {
case "add mod":
- echo "Added a ".$info[0].": $modname";
+ echo "Added a ".$info[0].": <A HREF=\"$CFG->wwwroot/course/$log->url\">$modname</A>";
break;
case "update mod":
echo "Updated the ".$info[0].": <A HREF=\"$CFG->wwwroot/course/$log->url\">$modname</A>";

0 comments on commit 83b0b77

Please sign in to comment.