Merge branch 'MDL-57004-master' of git://github.com/ankitagarwal/moodle
authorAndrew Nicols <andrew@nicols.co.uk>
Thu, 17 Nov 2016 23:27:15 +0000 (07:27 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Thu, 17 Nov 2016 23:27:15 +0000 (07:27 +0800)
theme/boost/classes/output/core_renderer.php

index 48da10b..b4828c6 100644 (file)
@@ -564,7 +564,8 @@ class core_renderer extends \core_renderer {
                         $menu->add_secondary_action($link);
                     }
                 }
-            } else if (!empty($node) && $node->type == navigation_node::TYPE_COURSE) {
+            } else if (!empty($node) &&
+                ($node->type == navigation_node::TYPE_COURSE || $node->type == navigation_node::TYPE_SECTION)) {
                 $settingsnode = $this->page->settingsnav->find('courseadmin', navigation_node::TYPE_COURSE);
                 if ($settingsnode) {
                     // Build an action menu based on the visible nodes from this navigation tree.