From 4c1c4b67a72984724f7e93d90daeb3f0458680d8 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Mon, 28 Jun 2010 02:16:15 +0000 Subject: [PATCH] messaging MDL-22320 Improved the page title on the messaging page to better reflect what the user is looking at --- message/contacts_messages.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/message/contacts_messages.php b/message/contacts_messages.php index b32ff4b05e5..6c96b54d93e 100644 --- a/message/contacts_messages.php +++ b/message/contacts_messages.php @@ -168,8 +168,15 @@ if (!empty($messageerror)) { } $strmessages = get_string('messages', 'message'); -$PAGE->set_title("$SITE->shortname: $strmessages"); -$PAGE->set_heading("$SITE->shortname: $strmessages"); +if (!empty($user2)) { + $user2fullname = fullname($user2); + + $PAGE->set_title("$strmessages: $user2fullname"); + $PAGE->set_heading("$strmessages: $user2fullname"); +} else { + $PAGE->set_title("$SITE->shortname: $strmessages"); + $PAGE->set_heading("$SITE->shortname: $strmessages"); +} //now the page contents echo $OUTPUT->header();