messaging MDL-22320 Improved the page title on the messaging page to better reflect what the user is looking at

This commit is contained in:
Andrew Davis
2010-06-28 02:16:15 +00:00
parent 6127179bbd
commit 4c1c4b67a7
+9 -2
View File
@@ -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();