From 3f8a38343bef07df311c10887ae4e65d05a6ffba Mon Sep 17 00:00:00 2001 From: vyshane Date: Sun, 24 Sep 2006 14:35:48 +0000 Subject: [PATCH] Removed isteacher from function print_recent_activity_note() --- lib/weblib.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 61e59058e7..c717f2f19a 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3511,21 +3511,23 @@ function make_table($table) { return $output; } -function print_recent_activity_note($time, $user, $isteacher, $text, $link, $return=false) { +function print_recent_activity_note($time, $user, $text, $link, $return=false) { static $strftimerecent; - $output = ''; + $context = get_context_instance(CONTEXT_SYSTEM, SITEID); + $viewfullnames = has_capability('moodle/site:viewfullnames', $context); + if (empty($strftimerecent)) { $strftimerecent = get_string('strftimerecent'); } $date = userdate($time, $strftimerecent); - $name = fullname($user, $isteacher); + $name = fullname($user, $viewfullnames); $output .= '
'; $output .= '
'.$date.'
'. - '
'.fullname($user, $isteacher).'
'; + '
'.fullname($user, $viewfullnames).'
'; $output .= '
'; $output .= '
'.format_string($text,true).'
'; -- 2.39.5