Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
4c1ccf5e
Commit
4c1ccf5e
authored
Nov 22, 2021
by
Sara Arjona
Committed by
jun
Nov 23, 2021
Browse files
Merge branch 'MDL-72934-master' of
https://github.com/peterRd/moodle
parents
97730511
12ded633
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/classes/navigation/output/more_menu.php
View file @
4c1ccf5e
...
...
@@ -57,8 +57,9 @@ class more_menu implements renderable, templatable {
public
function
export_for_template
(
renderer_base
$output
):
array
{
$data
=
[
'navbarstyle'
=>
$this
->
navbarstyle
];
if
(
$this
->
haschildren
)
{
// The node collection doesn't have anything to render so exit now.
if
(
!
isset
(
$this
->
content
->
children
)
||
count
(
$this
->
content
->
children
)
==
0
)
{
$data
=
[];
return
[];
}
$data
[
'nodecollection'
]
=
$this
->
content
;
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment