mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-82813 group: correctly format group description property.
This commit is contained in:
parent
52c0da7c64
commit
3e18e85dce
@ -562,10 +562,13 @@ function user_get_user_details($user, $course = null, array $userfields = array(
|
||||
}
|
||||
}
|
||||
|
||||
$groupdescription = file_rewrite_pluginfile_urls($group->description, 'pluginfile.php', $context->id, 'group',
|
||||
'description', $group->id);
|
||||
|
||||
$userdetails['groups'][] = [
|
||||
'id' => $group->id,
|
||||
'name' => format_string($group->name),
|
||||
'description' => format_text($group->description, $group->descriptionformat, ['context' => $context]),
|
||||
'name' => format_string($group->name, true, ['context' => $context]),
|
||||
'description' => format_text($groupdescription, $group->descriptionformat, ['context' => $context]),
|
||||
'descriptionformat' => $group->descriptionformat
|
||||
];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user