From b45ac02884c4172995b2cf25ea67c4a46476ccc8 Mon Sep 17 00:00:00 2001 From: Martin Dougiamas Date: Mon, 12 Jul 2010 13:42:42 +0000 Subject: [PATCH] Show the user's name in the title and header --- user/profile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/user/profile.php b/user/profile.php index 18936adc8df..aa48790cbf3 100644 --- a/user/profile.php +++ b/user/profile.php @@ -61,7 +61,7 @@ if (!$currentuser && !has_coursecontact_role($userid)) { // Course managers can be browsed at site level. If not forceloginforprofiles, allow access (bug #4366) $struser = get_string('user'); - $PAGE->set_title("$SITE->shortname: $struser"); + $PAGE->set_title("$SITE->shortname: $struser"); // Do not leak the name $PAGE->set_heading("$SITE->shortname: $struser"); $PAGE->set_url('/user/profile.php', array('id'=>$userid)); $PAGE->navbar->add($struser); @@ -105,8 +105,8 @@ $params = array('id'=>$userid); $PAGE->set_url('/user/profile.php', $params); $PAGE->blocks->add_region('content'); $PAGE->set_subpage($currentpage->id); -$PAGE->set_title("$SITE->shortname: $strpublicprofile"); -$PAGE->set_heading("$SITE->shortname: $strpublicprofile"); +$PAGE->set_title(fullname($user).": $strpublicprofile"); +$PAGE->set_heading(fullname($user).": $strpublicprofile"); if (!$currentuser) { $PAGE->navigation->extend_for_user($user);