MDL-31802 - navigation: add a comment about session reduction
authorDan Poltawski <dan@moodle.com>
Mon, 2 Jul 2012 09:29:30 +0000 (17:29 +0800)
committerDan Poltawski <dan@moodle.com>
Mon, 2 Jul 2012 09:30:21 +0000 (17:30 +0800)
lib/navigationlib.php

index 41e5d2a..82b3ad9 100644 (file)
@@ -1924,6 +1924,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;