MDL-26120_23 mod_forum: use correct object
authorJayesh Anandani <jayeshanandani@gmail.com>
Wed, 8 May 2013 19:22:41 +0000 (00:52 +0530)
committerJayesh Anandani <jayeshanandani@gmail.com>
Wed, 8 May 2013 19:22:41 +0000 (00:52 +0530)
mod/forum/lib.php

index 928fda4..d9f28be 100644 (file)
@@ -3719,7 +3719,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";