Skip to content

Commit

Permalink
Merge branch 'MDL-82813' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Oct 10, 2024
2 parents 79c9f30 + 14be75d commit 1d208af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions user/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
];
}
Expand Down

0 comments on commit 1d208af

Please sign in to comment.