MDL-26120 mod_forum: use correct object
authorJayesh Anandani <jayeshanandani@gmail.com>
Fri, 5 Apr 2013 02:42:26 +0000 (08:12 +0530)
committerJayesh Anandani <jayeshanandani@gmail.com>
Thu, 11 Apr 2013 14:17:40 +0000 (19:47 +0530)
mod/forum/lib.php

index 73a5000..f3a385d 100644 (file)
@@ -3737,7 +3737,7 @@ function forum_print_discussion_header(&$post, $forum, $group=-1, $datestring=""
     echo "</td>\n";
 
     // User name
-    $fullname = fullname($post, has_capability('moodle/site:viewfullnames', $modcontext));
+    $fullname = fullname($postuser, has_capability('moodle/site:viewfullnames', $modcontext));
     echo '<td class="author">';
     echo '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$post->userid.'&amp;course='.$forum->course.'">'.$fullname.'</a>';
     echo "</td>\n";