mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
ugly hack to fix bug 1824 about wrong fullname format in log info.
This commit is contained in:
parent
532255f848
commit
181b888e16
@ -607,7 +607,12 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per
|
||||
$ldcache[$log->module][$log->action] = $ld;
|
||||
}
|
||||
if ($ld && !empty($log->info)) {
|
||||
$log->info = get_field($ld->mtable, $ld->field, 'id', $log->info);
|
||||
// ugly hack to make sure fullname is shown correctly
|
||||
if (($ld->mtable == 'user') and ($ld->field == 'CONCAT(firstname," ",lastname)')) {
|
||||
$log->info = fullname(get_record($ld->mtable, 'id', $log->info), true);
|
||||
} else {
|
||||
$log->info = get_field($ld->mtable, $ld->field, 'id', $log->info);
|
||||
}
|
||||
}
|
||||
|
||||
$log->url = strip_tags(urldecode($log->url)); // Some XSS protection
|
||||
|
Loading…
x
Reference in New Issue
Block a user