MDL-60314 navigation: fix overriding variable value

This commit is contained in:
Marina Glancy 2017-10-04 11:47:18 +08:00
parent d8e9a23c48
commit 0b844a8322

View File

@ -2452,8 +2452,8 @@ class global_navigation extends navigation_node {
$reporttab = $usercoursenode->add(get_string('activityreports'));
$reports = get_plugin_list_with_function('report', 'extend_navigation_user', 'lib.php');
foreach ($reports as $reportfunction) {
$reportfunctions = get_plugin_list_with_function('report', 'extend_navigation_user', 'lib.php');
foreach ($reportfunctions as $reportfunction) {
$reportfunction($reporttab, $user, $usercourse);
}