navigation MDL-14632 Gave Front page settings a named key so that it can be closed if someone ever wants to close it by default

This commit is contained in:
samhemelryk 2009-09-16 08:04:59 +00:00
parent a6e34701cb
commit 152fdf934d

View File

@ -2894,7 +2894,7 @@ class settings_navigation extends navigation_node {
}
if (has_capability('moodle/course:update', $course->context)) {
$frontpage = $this->add(get_string('frontpagesettings'));
$frontpage = $this->add(get_string('frontpagesettings'), null, self::TYPE_SETTING, null, 'frontpage');
$this->get($frontpage)->id = 'frontpagesettings';
$this->get($frontpage)->forceopen = true;