mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'MDL-75038' of https://github.com/paulholden/moodle
This commit is contained in:
commit
714f944a3e
@ -116,7 +116,7 @@ if ($courseid != SITEID) {
|
||||
}
|
||||
|
||||
if (!empty($userid)) {
|
||||
$user = core_user::get_user($userid);
|
||||
$user = core_user::get_user($userid, '*', MUST_EXIST);
|
||||
$PAGE->navigation->extend_for_user($user);
|
||||
}
|
||||
|
||||
@ -153,10 +153,11 @@ if ($usernode && $courseid != SITEID) {
|
||||
if ($courseid != SITEID) {
|
||||
$PAGE->set_heading($course->fullname);
|
||||
echo $OUTPUT->header();
|
||||
$backurl = new moodle_url('/user/view.php', ['id' => $userid, 'course' => $courseid]);
|
||||
echo $OUTPUT->single_button($backurl, get_string('back'), 'get', ['class' => 'mb-3']);
|
||||
|
||||
if (!empty($user)) {
|
||||
$backurl = new moodle_url('/user/view.php', ['id' => $user->id, 'course' => $courseid]);
|
||||
echo $OUTPUT->single_button($backurl, get_string('back'), 'get', ['class' => 'mb-3']);
|
||||
|
||||
$headerinfo = array('heading' => fullname($user), 'user' => $user);
|
||||
echo $OUTPUT->context_header($headerinfo, 2);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user