mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
Merge branch 'MDL-60653-master' of git://github.com/rezaies/moodle
This commit is contained in:
commit
73aa231f83
@ -434,7 +434,7 @@ class navigation_node implements renderable {
|
||||
public function build_flat_navigation_list(flat_navigation $nodes, $showdivider = false) {
|
||||
if ($this->showinflatnavigation) {
|
||||
$indent = 0;
|
||||
if ($this->type == self::TYPE_COURSE || $this->key == self::COURSE_INDEX_PAGE) {
|
||||
if ($this->type == self::TYPE_COURSE || $this->key === self::COURSE_INDEX_PAGE) {
|
||||
$indent = 1;
|
||||
}
|
||||
$flat = new flat_navigation_node($this, $indent);
|
||||
|
Loading…
x
Reference in New Issue
Block a user