Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 02f007f45d3980219dd394ea021337f59a860aa9 1 parent 6f526f7
authored November 14, 2003

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  mod/forum/lib.php
4  mod/forum/lib.php
@@ -439,7 +439,7 @@ function forum_print_recent_instance_activity($forum, $timestart, $detail=false)
439 439
         echo $post->subject;
440 440
         echo "</a></font><br>";
441 441
         echo "<font size=2>";
442  
-        $by->name = "<a href=\"$CFG->wwwroot/user/view.php?id=$post->userid&course=$courseid\">$post->firstname $post->lastname</a>";
  442
+        $by->name = "<a href=\"$CFG->wwwroot/user/view.php?id=$post->userid&course=$post->course\">$post->firstname $post->lastname</a>";
443 443
         $by->date = userdate($post->modified);
444 444
         print_string("bynameondate", "forum", $by);
445 445
         echo "</font></p></td></tr></table>";
@@ -905,7 +905,7 @@ function forum_get_recent_posts($sincetime, $forum="0") {
905 905
         $forumselect = "";
906 906
     }
907 907
 
908  
-    return get_records_sql("SELECT p.*, d.name, u.id, u.firstname, u.lastname, u.picture
  908
+    return get_records_sql("SELECT p.*, d.name, u.id, u.firstname, u.lastname, u.picture, d.course
909 909
                               FROM {$CFG->prefix}forum_posts p, 
910 910
                                    {$CFG->prefix}forum_discussions d,
911 911
                                    {$CFG->prefix}user u

0 notes on commit 02f007f

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