mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'MDL-51576-master-2' of git://github.com/ryanwyllie/moodle
This commit is contained in:
commit
08d93936f4
1 changed files with 4 additions and 0 deletions
|
@ -3928,6 +3928,10 @@ class settings_navigation extends navigation_node {
|
|||
// Let plugins hook into course navigation.
|
||||
$pluginsfunction = get_plugins_with_function('extend_navigation_course', 'lib.php');
|
||||
foreach ($pluginsfunction as $plugintype => $plugins) {
|
||||
// Ignore the report plugin as it was already loaded above.
|
||||
if ($plugintype == 'report') {
|
||||
continue;
|
||||
}
|
||||
foreach ($plugins as $pluginfunction) {
|
||||
$pluginfunction($coursenode, $course, $coursecontext);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue