mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
Merge branch 'MDL-29896-master' of git://github.com/sammarshallou/moodle
This commit is contained in:
commit
00a4543c5b
@ -4047,6 +4047,8 @@ class navigation_json {
|
||||
$attributes['link'] = $child->action;
|
||||
} else if ($child->action instanceof moodle_url) {
|
||||
$attributes['link'] = $child->action->out();
|
||||
} else if ($child->action instanceof action_link) {
|
||||
$attributes['link'] = $child->action->url->out();
|
||||
}
|
||||
$attributes['hidden'] = ($child->hidden);
|
||||
$attributes['haschildren'] = ($child->children->count()>0 || $child->type == navigation_node::TYPE_CATEGORY);
|
||||
|
Loading…
x
Reference in New Issue
Block a user