mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +02:00
MDL-31802: Remove section summaries from navigation_cache
This commit is contained in:
parent
a5f6ea2e88
commit
a44c303d63
1 changed files with 2 additions and 0 deletions
|
@ -1924,6 +1924,8 @@ class global_navigation extends navigation_node {
|
|||
$activities = array();
|
||||
|
||||
foreach ($sections as $key => $section) {
|
||||
$sections[$key] = clone($section);
|
||||
unset($sections[$key]->summary);
|
||||
$sections[$key]->hasactivites = false;
|
||||
if (!array_key_exists($section->section, $modinfo->sections)) {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue