MDL-31802 - navigation: add a comment about session reduction
This commit is contained in:
@@ -1633,6 +1633,7 @@ class global_navigation extends navigation_node {
|
||||
$activities = array();
|
||||
|
||||
foreach ($sections as $key => $section) {
|
||||
// Clone and unset summary to prevent $SESSION bloat (MDL-31802).
|
||||
$sections[$key] = clone($section);
|
||||
unset($sections[$key]->summary);
|
||||
$sections[$key]->hasactivites = false;
|
||||
|
||||
Reference in New Issue
Block a user