Merge branch 'MDL-26120' of https://github.com/jacks92/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 20 May 2013 22:54:08 +0000 (00:54 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 20 May 2013 22:54:08 +0000 (00:54 +0200)
mod/forum/lib.php

index 96cc502..0e3935a 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";