mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
Merge branch 'MDL-78806-master' of https://github.com/junpataleta/moodle
This commit is contained in:
commit
94c9ce0595
52 changed files with 223 additions and 82 deletions
|
@ -332,7 +332,8 @@ if ($user->id == -1 or ($user->id != $USER->id)) {
|
|||
$streditmyprofile = get_string('editmyprofile');
|
||||
$userfullname = fullname($user, true);
|
||||
$PAGE->set_heading($userfullname);
|
||||
$PAGE->set_title("$course->shortname: $streditmyprofile - $userfullname");
|
||||
$coursename = $course->id !== SITEID ? "$course->shortname" : '';
|
||||
$PAGE->set_title("$streditmyprofile: $userfullname" . moodle_page::TITLE_SEPARATOR . $coursename);
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading($userfullname);
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ $a = new stdClass();
|
|||
$a->fullname = fullname($user, true);
|
||||
$stremailupdate = get_string('emailupdate', 'auth', $a);
|
||||
|
||||
$PAGE->set_title(format_string($SITE->fullname) . ": $stremailupdate");
|
||||
$PAGE->set_title($stremailupdate);
|
||||
$PAGE->set_heading(format_string($SITE->fullname) . ": $stremailupdate");
|
||||
|
||||
if (empty($preferences['newemailattemptsleft'])) {
|
||||
|
|
|
@ -83,7 +83,7 @@ if (!user_can_view_profile($user, null, $context)) {
|
|||
// Course managers can be browsed at site level. If not forceloginforprofiles, allow access (bug #4366).
|
||||
$struser = get_string('user');
|
||||
$PAGE->set_context(context_system::instance());
|
||||
$PAGE->set_title("$SITE->shortname: $struser"); // Do not leak the name.
|
||||
$PAGE->set_title($struser); // Do not leak the name.
|
||||
$PAGE->set_heading($struser);
|
||||
$PAGE->set_pagelayout('mypublic');
|
||||
$PAGE->add_body_class('limitedwidth');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue