]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18869 fixed full name display; merged from MOODLE_19_STABLE
authorskodak <skodak>
Fri, 8 May 2009 12:08:02 +0000 (12:08 +0000)
committerskodak <skodak>
Fri, 8 May 2009 12:08:02 +0000 (12:08 +0000)
blog/lib.php

index 5272bdd17c7b2edde562d826a1a680600af38294..b94635e6e63eed8017475538eecf2a7f76e3845f 100755 (executable)
         echo '</td>';
 
         echo '<td class="topic starter"><div class="subject">'.$template['title'].'</div><div class="author">';
-        $fullname = fullname($user, $template['userid']);
+        $fullname = fullname($user, has_capability('moodle/site:viewfullnames', get_context_instance(CONTEXT_COURSE, $COURSE->id)));
         $by = new object();
         $by->name =  '<a href="'.$CFG->wwwroot.'/user/view.php?id='.
                     $user->id.'&amp;course='.$COURSE->id.'">'.$fullname.'</a>';