MDL-49819 navigation: Messaging breadcrumb edit.

Messaging other users the name in the breadcrumb will
now direct to the conversation instead of the user profile.

Part of MDL-45774.
This commit is contained in:
Adrian Greeve 2015-04-10 15:38:15 +08:00
parent f81893572c
commit 83374afd92

View File

@ -207,7 +207,7 @@ $usernode->remove();
$settings = $PAGE->settingsnav->find('messages', null);
// Add the user we are contacting to the breadcrumb.
if (!empty($user2realuser)) {
$usernode = $settings->add(fullname($user2), new moodle_url('/user/profile.php', array('id' => $user2->id)));
$usernode = $settings->add(fullname($user2), $url);
$usernode->make_active();
} else {
$settings->make_active();