mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-29896 Navigation: Make links, files clickable in nav block
This commit is contained in:
parent
f6b4ec2b4a
commit
5ad40d0e19
@ -4047,6 +4047,8 @@ class navigation_json {
|
|||||||
$attributes['link'] = $child->action;
|
$attributes['link'] = $child->action;
|
||||||
} else if ($child->action instanceof moodle_url) {
|
} else if ($child->action instanceof moodle_url) {
|
||||||
$attributes['link'] = $child->action->out();
|
$attributes['link'] = $child->action->out();
|
||||||
|
} else if ($child->action instanceof action_link) {
|
||||||
|
$attributes['link'] = $child->action->url->out();
|
||||||
}
|
}
|
||||||
$attributes['hidden'] = ($child->hidden);
|
$attributes['hidden'] = ($child->hidden);
|
||||||
$attributes['haschildren'] = ($child->children->count()>0 || $child->type == navigation_node::TYPE_CATEGORY);
|
$attributes['haschildren'] = ($child->children->count()>0 || $child->type == navigation_node::TYPE_CATEGORY);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user