navigation MDL-14632 Show shortname of course instead of long name

This commit is contained in:
Sam Hemelryk 2010-05-03 08:40:42 +00:00
parent 6aa931edb3
commit d59a3f285b

View File

@ -1415,7 +1415,7 @@ class global_navigation extends navigation_node {
$parent = $this->rootnodes['courses']; $parent = $this->rootnodes['courses'];
$url = new moodle_url('/course/view.php', array('id'=>$course->id)); $url = new moodle_url('/course/view.php', array('id'=>$course->id));
} }
$coursenode = $parent->add($course->fullname, $url, self::TYPE_COURSE, $course->shortname, $course->id); $coursenode = $parent->add($course->shortname, $url, self::TYPE_COURSE, $course->shortname, $course->id);
$coursenode->nodetype = self::NODETYPE_BRANCH; $coursenode->nodetype = self::NODETYPE_BRANCH;
$coursenode->hidden = (!$course->visible); $coursenode->hidden = (!$course->visible);
$this->addedcourses[$course->id] = &$coursenode; $this->addedcourses[$course->id] = &$coursenode;