From 59bbfa4cc07c4998ba719d46da0bf738abfd82b5 Mon Sep 17 00:00:00 2001 From: Leon Stringer Date: Wed, 3 Sep 2025 16:14:01 +0200 Subject: [PATCH] MDL-86434 core: Page title for invalid user ID --- user/profile.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/user/profile.php b/user/profile.php index bc920b0e31a..31ca4f6d4c7 100644 --- a/user/profile.php +++ b/user/profile.php @@ -50,6 +50,7 @@ if (!empty($CFG->forceloginforprofiles)) { require_login(); if (isguestuser()) { $PAGE->set_context(context_system::instance()); + $PAGE->set_title(get_string('user')); echo $OUTPUT->header(); echo $OUTPUT->confirm(get_string('guestcantaccessprofiles', 'error'), get_login_url(), @@ -63,6 +64,7 @@ if (!empty($CFG->forceloginforprofiles)) { if ((!$user = $DB->get_record('user', array('id' => $userid))) || ($user->deleted)) { $PAGE->set_context(context_system::instance()); + $PAGE->set_title(get_string('user')); echo $OUTPUT->header(); if (!$user) { echo $OUTPUT->notification(get_string('invaliduser', 'error'));