Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

modified print_recent_instance_activity to fix missing course value

modified get_recent_posts to select course id from forum_discussions table
  • Loading branch information...
1 parent 6f526f7 commit 02f007f45d3980219dd394ea021337f59a860aa9 selliott committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/forum/lib.php
4 mod/forum/lib.php
@@ -439,7 +439,7 @@ function forum_print_recent_instance_activity($forum, $timestart, $detail=false)
echo $post->subject;
echo "</a></font><br>";
echo "<font size=2>";
- $by->name = "<a href=\"$CFG->wwwroot/user/view.php?id=$post->userid&course=$courseid\">$post->firstname $post->lastname</a>";
+ $by->name = "<a href=\"$CFG->wwwroot/user/view.php?id=$post->userid&course=$post->course\">$post->firstname $post->lastname</a>";
$by->date = userdate($post->modified);
print_string("bynameondate", "forum", $by);
echo "</font></p></td></tr></table>";
@@ -905,7 +905,7 @@ function forum_get_recent_posts($sincetime, $forum="0") {
$forumselect = "";
- return get_records_sql("SELECT p.*,,, u.firstname, u.lastname, u.picture
+ return get_records_sql("SELECT p.*,,, u.firstname, u.lastname, u.picture, d.course
FROM {$CFG->prefix}forum_posts p,
{$CFG->prefix}forum_discussions d,
{$CFG->prefix}user u

0 comments on commit 02f007f

Please sign in to comment.
Something went wrong with that request. Please try again.