MDL-26120 mod_forum: use correct object

This commit is contained in:
Jayesh Anandani
2013-05-21 00:55:17 +02:00
committed by Eloy Lafuente (stronk7)
parent e3c1bd2593
commit 2ab5928066
+1 -1
View 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";