navigation MDL-14632 Gave user branches a more useful key

This commit is contained in:
Sam Hemelryk 2010-06-10 07:02:38 +00:00
parent c0cc6dafa3
commit 25aad2c4bc

View File

@ -1482,7 +1482,7 @@ class global_navigation extends navigation_node {
$usersnode->action = new moodle_url('/user/index.php', array('id'=>$course->id));
}
// Add a branch for the current user
$usernode = $usersnode->add(fullname($user, true));
$usernode = $usersnode->add(fullname($user, true), null, self::TYPE_USER, null, $user->id);
}
if ($this->page->context->contextlevel == CONTEXT_USER && $user->id == $this->page->context->instanceid) {