mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
navigation MDL-14632 Show shortname of course instead of long name
This commit is contained in:
parent
6aa931edb3
commit
d59a3f285b
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user