Permalink
Browse files

MDL-26120 mod_forum: use correct object

  • Loading branch information...
1 parent e3c1bd2 commit 2ab5928066e566c29f2da809e72b98f596a25710 @jayeshanandani jayeshanandani committed with stronk7 Apr 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
@@ -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";

0 comments on commit 2ab5928

Please sign in to comment.