Permalink
Browse files

Use log URL for link to journal

  • Loading branch information...
martin
martin committed Sep 22, 2002
1 parent 01a086c commit 3bf90da5f6b6553907b37dac1b8fc7a24b57a439
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/journal/lib.php
View
@@ -138,6 +138,7 @@ function journal_print_recent_activity(&$logs, $isteacher=false) {
WHERE e.id = '$log->info' AND e.journal = j.id
AND e.user = u.id");
$journals[$log->info]->time = $log->time;
+ $journals[$log->info]->url = $log->url;
}
}
}
@@ -149,7 +150,7 @@ function journal_print_recent_activity(&$logs, $isteacher=false) {
foreach ($journals as $journal) {
$date = userdate($journal->time, "%e %b, %H:%M");
echo "<P><FONT SIZE=1>$date - $journal->firstname $journal->lastname<BR>";
- echo "\"<A HREF=\"$CFG->wwwroot/mod/journal/view.php?id=$journal->id\">";
+ echo "\"<A HREF=\"$CFG->wwwroot/mod/journal/$journal->url\">";
echo "$journal->name";
echo "</A>\"</FONT></P>";
}

0 comments on commit 3bf90da

Please sign in to comment.